com.threerings.opengl.material
Class Projection

java.lang.Object
  extended by com.threerings.util.ShallowObject
      extended by com.threerings.opengl.material.Projection

public class Projection
extends ShallowObject

Represents a projection onto a surface.


Field Summary
protected  ColorState _colorState
          The projection's color state.
protected  Vector4f _genPlaneQ
          The q texture coordinate generation plane.
protected  Vector4f _genPlaneR
          The r texture coordinate generation plane.
protected  Vector4f _genPlaneS
          The s texture coordinate generation plane.
protected  Vector4f _genPlaneT
          The t texture coordinate generation plane.
protected  TechniqueConfig _technique
          The technique to use to render the projection.
 
Constructor Summary
Projection(TechniqueConfig technique, ColorState colorState)
          Creates a new projection.
 
Method Summary
 Vector4f getGenPlaneQ()
          Returns a reference to the q texture coordinate generation plane.
 Vector4f getGenPlaneR()
          Returns a reference to the r texture coordinate generation plane.
 Vector4f getGenPlaneS()
          Returns a reference to the s texture coordinate generation plane.
 Vector4f getGenPlaneT()
          Returns a reference to the t texture coordinate generation plane.
 TechniqueConfig getTechnique()
          Returns a reference to the technique to use to render this projection.
static TechniqueConfig rewrite(TechniqueConfig technique, Projection[] projections)
          Rewrites a technique to include the supplied projections.
 
Methods inherited from class com.threerings.util.ShallowObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_technique

protected TechniqueConfig _technique
The technique to use to render the projection.


_colorState

@Scoped
protected ColorState _colorState
The projection's color state.


_genPlaneS

@Scoped
protected Vector4f _genPlaneS
The s texture coordinate generation plane.


_genPlaneT

@Scoped
protected Vector4f _genPlaneT
The t texture coordinate generation plane.


_genPlaneR

@Scoped
protected Vector4f _genPlaneR
The r texture coordinate generation plane.


_genPlaneQ

@Scoped
protected Vector4f _genPlaneQ
The q texture coordinate generation plane.

Constructor Detail

Projection

public Projection(TechniqueConfig technique,
                  ColorState colorState)
Creates a new projection.

Parameters:
technique - the material technique to use to render the projection.
Method Detail

rewrite

public static TechniqueConfig rewrite(TechniqueConfig technique,
                                      Projection[] projections)
Rewrites a technique to include the supplied projections.


getTechnique

public TechniqueConfig getTechnique()
Returns a reference to the technique to use to render this projection.


getGenPlaneS

public Vector4f getGenPlaneS()
Returns a reference to the s texture coordinate generation plane.


getGenPlaneT

public Vector4f getGenPlaneT()
Returns a reference to the t texture coordinate generation plane.


getGenPlaneR

public Vector4f getGenPlaneR()
Returns a reference to the r texture coordinate generation plane.


getGenPlaneQ

public Vector4f getGenPlaneQ()
Returns a reference to the q texture coordinate generation plane.