public class ShaderGenerationInfo extends java.lang.Object implements Savable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.util.List<ShaderNodeVariable> |
attributes
the list of attributes of the vertex shader
|
protected java.util.List<ShaderNodeVariable> |
fragmentGlobals
the list of all the fragment shader global outputs (to assign ot gl_FragColor or gl_Fragdata[n])
|
protected java.util.List<ShaderNodeVariable> |
fragmentUniforms
the list of all the uniforms to declare in the fragment shader
|
protected java.util.List<java.lang.String> |
unusedNodes
the unused node names of this shader (node whose output are never used)
|
protected java.util.List<ShaderNodeVariable> |
varyings
the list of varyings
|
protected ShaderNodeVariable |
vertexGlobal
the global output of the vertex shader (to assign ot gl_Position)
|
protected java.util.List<ShaderNodeVariable> |
vertexUniforms
the list of all the uniforms to declare in the vertex shader
|
Constructor and Description |
---|
ShaderGenerationInfo() |
Modifier and Type | Method and Description |
---|---|
protected ShaderGenerationInfo |
clone() |
java.util.List<ShaderNodeVariable> |
getAttributes() |
java.util.List<ShaderNodeVariable> |
getFragmentGlobals() |
java.util.List<ShaderNodeVariable> |
getFragmentUniforms() |
java.util.List<java.lang.String> |
getUnusedNodes() |
java.util.List<ShaderNodeVariable> |
getVaryings() |
ShaderNodeVariable |
getVertexGlobal() |
java.util.List<ShaderNodeVariable> |
getVertexUniforms() |
void |
read(JmeImporter im) |
void |
setUnusedNodes(java.util.List<java.lang.String> unusedNodes)
the list of unused node names
|
void |
setVertexGlobal(ShaderNodeVariable vertexGlobal)
sets the vertex shader global output
|
java.lang.String |
toString()
convenient toString method
|
void |
write(JmeExporter ex) |
protected java.util.List<ShaderNodeVariable> attributes
protected java.util.List<ShaderNodeVariable> vertexUniforms
protected ShaderNodeVariable vertexGlobal
protected java.util.List<ShaderNodeVariable> varyings
protected java.util.List<ShaderNodeVariable> fragmentUniforms
protected java.util.List<ShaderNodeVariable> fragmentGlobals
protected java.util.List<java.lang.String> unusedNodes
public java.util.List<ShaderNodeVariable> getAttributes()
public java.util.List<ShaderNodeVariable> getVertexUniforms()
public java.util.List<ShaderNodeVariable> getFragmentUniforms()
public ShaderNodeVariable getVertexGlobal()
public java.util.List<ShaderNodeVariable> getFragmentGlobals()
public java.util.List<ShaderNodeVariable> getVaryings()
public void setVertexGlobal(ShaderNodeVariable vertexGlobal)
vertexGlobal
- the global outputpublic java.util.List<java.lang.String> getUnusedNodes()
public void setUnusedNodes(java.util.List<java.lang.String> unusedNodes)
unusedNodes
- the new list (alias created)public java.lang.String toString()
toString
in class java.lang.Object
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
protected ShaderGenerationInfo clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException