Package com.jme3.shader
Class Uniform
java.lang.Object
com.jme3.shader.ShaderVariable
com.jme3.shader.Uniform
-
Field Summary
Modifier and TypeFieldDescriptionprotected UniformBinding
Binding to a renderer value, or null if user-defined uniformprotected FloatBuffer
For arrays or matrices, efficient format that can be sent to GL faster.protected boolean
Used to track which uniforms to clear to avoid values leaking from other materials that use that shader.protected Object
Currently set value of the uniform.protected VarType
Type of uniformFields inherited from class com.jme3.shader.ShaderVariable
LOC_NOT_DEFINED, LOC_UNKNOWN, location, name, updateNeeded
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
boolean
getValue()
int
hashCode()
boolean
boolean
void
reset()
void
setBinding
(UniformBinding binding) void
void
setVector4InArray
(float x, float y, float z, float w, int index) void
setVector4Length
(int length) toString()
Methods inherited from class com.jme3.shader.ShaderVariable
getLocation, getName, setLocation, setName
-
Field Details
-
value
Currently set value of the uniform. -
multiData
For arrays or matrices, efficient format that can be sent to GL faster. -
varType
Type of uniform -
binding
Binding to a renderer value, or null if user-defined uniform -
setByCurrentMaterial
protected boolean setByCurrentMaterialUsed to track which uniforms to clear to avoid values leaking from other materials that use that shader.
-
-
Constructor Details
-
Uniform
public Uniform()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
toString
-
setBinding
-
getBinding
-
getVarType
-
getValue
-
getMultiData
-
isSetByCurrentMaterial
public boolean isSetByCurrentMaterial() -
clearSetByCurrentMaterial
public void clearSetByCurrentMaterial() -
clearValue
public void clearValue() -
setValue
-
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() -
deleteNativeBuffers
public void deleteNativeBuffers()
-