Package com.jme3.shader
Class ShaderVariable
java.lang.Object
com.jme3.shader.ShaderVariable
- Direct Known Subclasses:
Attribute
,ShaderBufferBlock
,Uniform
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
protected int
protected String
Name of the uniform as was declared in the shader.protected boolean
True if the shader value was changed. -
Constructor Summary
-
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
-