Package com.jme3.shader
Class ShaderVariable
java.lang.Object
com.jme3.shader.ShaderVariable
- Direct Known Subclasses:
Attribute,ShaderBufferBlock,Uniform
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprotected intprotected StringName of the uniform as was declared in the shader.protected booleanTrue if the shader value was changed. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOC_UNKNOWN
public static final int LOC_UNKNOWN- See Also:
-
LOC_NOT_DEFINED
public static final int LOC_NOT_DEFINED- See Also:
-
location
protected int location -
name
Name of the uniform as was declared in the shader. E.g. name = "g_WorldMatrix" if the declaration was "uniform mat4 g_WorldMatrix;". -
updateNeeded
protected boolean updateNeededTrue if the shader value was changed.
-
-
Constructor Details
-
ShaderVariable
public ShaderVariable()
-
-
Method Details
-
setLocation
public void setLocation(int location) -
getLocation
public int getLocation() -
setName
-
getName
-