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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringfloatToString(float f) generate(ChannelMap inp, MaterialConfiguration cs, GLSLChannelMap inpChan, int channel) This should be used instead of the other oneabstract ResultgenerateVolumeData(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:GLSLChannelMapThis should be used instead of the other one- Specified by:
generatein classGLSLChannelMap- Parameters:
inp-cs-inpChan-channel-- Returns:
-