java.lang.Object
de.grogra.glsl.material.channel.GLSLChannelMap
- Direct Known Subclasses:
GLSLChannelMapNode,GLSLChannelSPD,GLSLDefaultInput,GLSLGraytone,GLSLPlaneInput,GLSLRGBColor,GLSLSphereTracedInput,GLSLSphereTracedInputParallel
Base for all ChannelMaps. Also holds a list of all available GLSLChannelMaps.
- Author:
- Konni Hartmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Resultgenerate(ChannelMap inp, MaterialConfiguration cs, GLSLChannelMap inpChan, int Channel) This should be used instead of the other onestatic ResultgenerateResult(ChannelMap inp, MaterialConfiguration sc, GLSLChannelMap inpChan, int requestedChannel) static ResultgenerateResult(ChannelMap inp, MaterialConfiguration sc, GLSLChannelMap inpChan, int requestedChannel, ChannelMap defaultInp) static ResultgenerateResultWithChannelDefault(ChannelMap inp, MaterialConfiguration sc, GLSLChannelMap inpChan, int requestedChannel) static GLSLChannelMapgetGLSLObject(ChannelMap inp) static intgetMaxResultType(Result a, Result b) static voidinitMap()abstract ClassReturns the fully-qualified name of theChannelMapclass this handler covers.boolean
-
Constructor Details
-
GLSLChannelMap
public GLSLChannelMap()
-
-
Method Details
-
getGLSLObject
-
instanceFor
-
instanceForName
Returns the fully-qualified name of theChannelMapclass this handler covers. Used byChannelCollectionfor classloader-safe lookup (OSGi plugins each have their own classloader, soClassidentity cannot be used as a map key across plugin boundaries).The default delegates to
instanceFor(). Subclasses that handle classes from a foreign plugin (e.g.ChannelSPDin the GPUFlux plugin) should override this to return a string literal so that no cross-loaderClassobject is required. -
getMaxResultType
-
generateResultWithChannelDefault
public static Result generateResultWithChannelDefault(ChannelMap inp, MaterialConfiguration sc, GLSLChannelMap inpChan, int requestedChannel) -
generateResult
public static Result generateResult(ChannelMap inp, MaterialConfiguration sc, GLSLChannelMap inpChan, int requestedChannel, ChannelMap defaultInp) -
generateResult
public static Result generateResult(ChannelMap inp, MaterialConfiguration sc, GLSLChannelMap inpChan, int requestedChannel) -
generate
public abstract Result generate(ChannelMap inp, MaterialConfiguration cs, GLSLChannelMap inpChan, int Channel) This should be used instead of the other one- Parameters:
inp-cs-inpChan-Channel-- Returns:
-
mayDiscard
public boolean mayDiscard() -
initMap
public static void initMap()
-