com.jme3.shader
Class Uniform
java.lang.Object
com.jme3.shader.ShaderVariable
com.jme3.shader.Uniform
public class Uniform
- extends ShaderVariable
Field Summary |
protected UniformBinding |
binding
Binding to a renderer value, or null if user-defined uniform |
protected java.nio.FloatBuffer |
multiData
For arrays or matrices, efficient format
that can be sent to GL faster. |
protected boolean |
setByCurrentMaterial
Used to track which uniforms to clear to avoid
values leaking from other materials that use that shader. |
protected java.lang.Object |
value
Currently set value of the uniform. |
protected VarType |
varType
Type of uniform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
value
protected java.lang.Object value
- Currently set value of the uniform.
multiData
protected java.nio.FloatBuffer multiData
- For arrays or matrices, efficient format
that can be sent to GL faster.
varType
protected VarType varType
- Type of uniform
binding
protected UniformBinding binding
- Binding to a renderer value, or null if user-defined uniform
setByCurrentMaterial
protected boolean setByCurrentMaterial
- Used to track which uniforms to clear to avoid
values leaking from other materials that use that shader.
Uniform
public Uniform()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setBinding
public void setBinding(UniformBinding binding)
getBinding
public UniformBinding getBinding()
getVarType
public VarType getVarType()
getValue
public java.lang.Object getValue()
isSetByCurrentMaterial
public boolean isSetByCurrentMaterial()
clearSetByCurrentMaterial
public void clearSetByCurrentMaterial()
clearValue
public void clearValue()
setValue
public void setValue(VarType type,
java.lang.Object value)
setVector4Length
public void setVector4Length(int length)
setVector4InArray
public void setVector4InArray(float x,
float y,
float z,
float w,
int index)
isUpdateNeeded
public boolean isUpdateNeeded()
clearUpdateNeeded
public void clearUpdateNeeded()
reset
public void reset()