Class ShaderVariable

java.lang.Object
com.jme3.shader.ShaderVariable
Direct Known Subclasses:
Attribute, ShaderBufferBlock, Uniform

public class ShaderVariable extends Object
  • 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

      protected String 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 updateNeeded
      True if the shader value was changed.
  • Constructor Details

    • ShaderVariable

      public ShaderVariable()
  • Method Details

    • setLocation

      public void setLocation(int location)
    • getLocation

      public int getLocation()
    • setName

      public void setName(String name)
    • getName

      public String getName()