java.lang.Object
de.grogra.glsl.material.channel.GLSLChannelMap
- Direct Known Subclasses:
GLSLChannelMapNode,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 Classboolean
-
Constructor Details
-
GLSLChannelMap
public GLSLChannelMap()
-
-
Method Details
-
getGLSLObject
-
instanceFor
-
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()
-