java.lang.Object
de.grogra.glsl.material.channel.GLSLChannelMap
de.grogra.glsl.material.channel.GLSLChannelMapNode
de.grogra.glsl.material.channel.GLSLVolumeFunction
- Direct Known Subclasses:
GLSLGradient
,GLSLGranite
,GLSLJulia
,GLSLLeopard
,GLSLMandel
,GLSLVolumeTurbulence
,GLSLWood
Base class for all volume shaders. Will add FloatToFloat transformation.
- Author:
- Konni Hartmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
floatToString
(float f) generate
(ChannelMap inp, MaterialConfiguration cs, GLSLChannelMap inpChan, int channel) This should be used instead of the other oneabstract Result
generateVolumeData
(ChannelMap inp, MaterialConfiguration cs, GLSLChannelMap inpChan, int channel) Methods inherited from class de.grogra.glsl.material.channel.GLSLChannelMap
generateResult, generateResult, generateResultWithChannelDefault, getGLSLObject, getMaxResultType, initMap, instanceFor, mayDiscard
-
Constructor Details
-
GLSLVolumeFunction
public GLSLVolumeFunction()
-
-
Method Details
-
generateVolumeData
public abstract Result generateVolumeData(ChannelMap inp, MaterialConfiguration cs, GLSLChannelMap inpChan, int channel) -
floatToString
-
generate
public Result generate(ChannelMap inp, MaterialConfiguration cs, GLSLChannelMap inpChan, int channel) Description copied from class:GLSLChannelMap
This should be used instead of the other one- Specified by:
generate
in classGLSLChannelMap
- Returns:
-