Package com.jme3.shader
Class Uniform
java.lang.Object
com.jme3.shader.ShaderVariable
com.jme3.shader.Uniform
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected UniformBindingBinding to a renderer value, or null if user-defined uniformprotected FloatBufferFor arrays or matrices, efficient format that can be sent to GL faster.protected booleanUsed to track which uniforms to clear to avoid values leaking from other materials that use that shader.protected ObjectCurrently set value of the uniform.protected VarTypeType of uniformFields inherited from class com.jme3.shader.ShaderVariableLOC_NOT_DEFINED, LOC_UNKNOWN, location, name, updateNeeded
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidvoidvoidbooleangetValue()inthashCode()booleanbooleanvoidreset()voidsetBinding(UniformBinding binding) voidvoidsetVector4InArray(float x, float y, float z, float w, int index) voidsetVector4Length(int length) toString()Methods inherited from class com.jme3.shader.ShaderVariablegetLocation, getName, setLocation, setName
- 
Field Details- 
valueCurrently set value of the uniform.
- 
multiDataFor arrays or matrices, efficient format that can be sent to GL faster.
- 
varTypeType of uniform
- 
bindingBinding to a renderer value, or null if user-defined uniform
- 
setByCurrentMaterialprotected boolean setByCurrentMaterialUsed to track which uniforms to clear to avoid values leaking from other materials that use that shader.
 
- 
- 
Constructor Details- 
Uniformpublic Uniform()
 
- 
- 
Method Details- 
hashCodepublic int hashCode()
- 
equals
- 
toString
- 
setBinding
- 
getBinding
- 
getVarType
- 
getValue
- 
getMultiData
- 
isSetByCurrentMaterialpublic boolean isSetByCurrentMaterial()
- 
clearSetByCurrentMaterialpublic void clearSetByCurrentMaterial()
- 
clearValuepublic void clearValue()
- 
setValue
- 
setVector4Lengthpublic void setVector4Length(int length) 
- 
setVector4InArraypublic void setVector4InArray(float x, float y, float z, float w, int index) 
- 
isUpdateNeededpublic boolean isUpdateNeeded()
- 
clearUpdateNeededpublic void clearUpdateNeeded()
- 
resetpublic void reset()
- 
deleteNativeBufferspublic void deleteNativeBuffers()
 
-