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.


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
getClass, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2011. All Rights Reserved.