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
-
Method Summary
Modifier and TypeMethodDescriptionabstract Result
generate
(ChannelMap inp, MaterialConfiguration cs, GLSLChannelMap inpChan, int Channel) This should be used instead of the other onestatic Result
generateResult
(ChannelMap inp, MaterialConfiguration sc, GLSLChannelMap inpChan, int requestedChannel) static Result
generateResult
(ChannelMap inp, MaterialConfiguration sc, GLSLChannelMap inpChan, int requestedChannel, ChannelMap defaultInp) static Result
generateResultWithChannelDefault
(ChannelMap inp, MaterialConfiguration sc, GLSLChannelMap inpChan, int requestedChannel) static GLSLChannelMap
getGLSLObject
(ChannelMap inp) static int
getMaxResultType
(Result a, Result b) static void
initMap()
abstract Class
boolean
-
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()
-