com.jme3.shader
Enum UniformBinding

java.lang.Object
  extended by java.lang.Enum<UniformBinding>
      extended by com.jme3.shader.UniformBinding
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<UniformBinding>

public enum UniformBinding
extends java.lang.Enum<UniformBinding>


Enum Constant Summary
Aspect
          Aspect ratio of the resolution currently set.
CameraDirection
          Direction of the camera.
CameraLeft
          Left vector of the camera.
CameraPosition
          Camera position in world space.
CameraUp
          Up vector of the camera.
FrameRate
          Frames per second.
FrustumNearFar
          The near and far values for the camera frustum.
NormalMatrix
          The normal matrix.
NormalMatrixInverse
           
ProjectionMatrix
          The projection matrix.
ProjectionMatrixInverse
           
Resolution
          The width and height of the camera.
ResolutionInverse
          The inverse of the resolution, 1/width and 1/height.
Time
          Time in seconds since the application was started.
Tpf
          Time in seconds that the last frame took.
ViewMatrix
          The view matrix.
ViewMatrixInverse
           
ViewPort
          Contains the four viewport parameters in this order: X = Left, Y = Top, Z = Right, W = Bottom.
ViewProjectionMatrix
          The view projection matrix.
ViewProjectionMatrixInverse
           
WorldMatrix
          The world matrix.
WorldMatrixInverse
           
WorldMatrixInverseTranspose
          The world matrix inverse transpose.
WorldViewMatrix
          The world view matrix.
WorldViewMatrixInverse
           
WorldViewProjectionMatrix
          The world view projection matrix.
WorldViewProjectionMatrixInverse
           
 
Method Summary
static UniformBinding valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UniformBinding[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WorldMatrix

public static final UniformBinding WorldMatrix
The world matrix. Converts Model space to World space. Type: mat4


ViewMatrix

public static final UniformBinding ViewMatrix
The view matrix. Converts World space to View space. Type: mat4


ProjectionMatrix

public static final UniformBinding ProjectionMatrix
The projection matrix. Converts View space to Clip/Projection space. Type: mat4


WorldViewMatrix

public static final UniformBinding WorldViewMatrix
The world view matrix. Converts Model space to View space. Type: mat4


NormalMatrix

public static final UniformBinding NormalMatrix
The normal matrix. The inverse transpose of the worldview matrix. Converts normals from model space to view space. Type: mat3


WorldViewProjectionMatrix

public static final UniformBinding WorldViewProjectionMatrix
The world view projection matrix. Converts Model space to Clip/Projection space. Type: mat4


ViewProjectionMatrix

public static final UniformBinding ViewProjectionMatrix
The view projection matrix. Converts World space to Clip/Projection space. Type: mat4


WorldMatrixInverseTranspose

public static final UniformBinding WorldMatrixInverseTranspose
The world matrix inverse transpose. Converts a normals from Model space to world space. Type: mat3


WorldMatrixInverse

public static final UniformBinding WorldMatrixInverse

ViewMatrixInverse

public static final UniformBinding ViewMatrixInverse

ProjectionMatrixInverse

public static final UniformBinding ProjectionMatrixInverse

ViewProjectionMatrixInverse

public static final UniformBinding ViewProjectionMatrixInverse

WorldViewMatrixInverse

public static final UniformBinding WorldViewMatrixInverse

NormalMatrixInverse

public static final UniformBinding NormalMatrixInverse

WorldViewProjectionMatrixInverse

public static final UniformBinding WorldViewProjectionMatrixInverse

ViewPort

public static final UniformBinding ViewPort
Contains the four viewport parameters in this order: X = Left, Y = Top, Z = Right, W = Bottom. Type: vec4


FrustumNearFar

public static final UniformBinding FrustumNearFar
The near and far values for the camera frustum. X = Near Y = Far. Type: vec2


Resolution

public static final UniformBinding Resolution
The width and height of the camera. Type: vec2


ResolutionInverse

public static final UniformBinding ResolutionInverse
The inverse of the resolution, 1/width and 1/height. Type: vec2


Aspect

public static final UniformBinding Aspect
Aspect ratio of the resolution currently set. Width/Height. Type: float


CameraPosition

public static final UniformBinding CameraPosition
Camera position in world space. Type: vec3


CameraDirection

public static final UniformBinding CameraDirection
Direction of the camera. Type: vec3


CameraLeft

public static final UniformBinding CameraLeft
Left vector of the camera. Type: vec3


CameraUp

public static final UniformBinding CameraUp
Up vector of the camera. Type: vec3


Time

public static final UniformBinding Time
Time in seconds since the application was started. Type: float


Tpf

public static final UniformBinding Tpf
Time in seconds that the last frame took. Type: float


FrameRate

public static final UniformBinding FrameRate
Frames per second. Type: float

Method Detail

values

public static UniformBinding[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (UniformBinding c : UniformBinding.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static UniformBinding valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null