com.threerings.opengl.compositor
Class Dependency.RefractionTexture

java.lang.Object
  extended by com.threerings.opengl.compositor.Dependency
      extended by com.threerings.opengl.compositor.Dependency.Planar
          extended by com.threerings.opengl.compositor.Dependency.PlanarTexture
              extended by com.threerings.opengl.compositor.Dependency.RefractionTexture
Enclosing class:
Dependency

public static class Dependency.RefractionTexture
extends Dependency.PlanarTexture

A planar refraction texture.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.compositor.Dependency
Dependency.Adder, Dependency.CubeTexture, Dependency.Planar, Dependency.PlanarTexture, Dependency.ReflectionTexture, Dependency.RefractionTexture, Dependency.RenderEffect, Dependency.Shadows, Dependency.ShadowTexture, Dependency.ShadowVolumes, Dependency.StencilReflection, Dependency.StencilRefraction
 
Field Summary
protected  Vector3f _v0
          Temporary vectors.
protected  Vector3f _v1
          Temporary vectors.
 float ratio
          The refraction ratio (index of refraction below the surface over index of refraction above the surface).
 
Fields inherited from class com.threerings.opengl.compositor.Dependency.PlanarTexture
config, texture
 
Fields inherited from class com.threerings.opengl.compositor.Dependency.Planar
bounds, eyePlane, worldPlane
 
Fields inherited from class com.threerings.opengl.compositor.Dependency
_ctx, CUBE_FACE_ROTATIONS
 
Constructor Summary
Dependency.RefractionTexture(GlContext ctx)
          Creates a new refraction texture dependency.
 
Method Summary
 boolean equals(Object other)
           
 void resolve()
          Resolves this dependency.
 
Methods inherited from class com.threerings.opengl.compositor.Dependency.PlanarTexture
cleanup, merge
 
Methods inherited from class com.threerings.opengl.compositor.Dependency.Planar
hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ratio

public float ratio
The refraction ratio (index of refraction below the surface over index of refraction above the surface).


_v0

protected Vector3f _v0
Temporary vectors.


_v1

protected Vector3f _v1
Temporary vectors.

Constructor Detail

Dependency.RefractionTexture

public Dependency.RefractionTexture(GlContext ctx)
Creates a new refraction texture dependency.

Method Detail

resolve

public void resolve()
Description copied from class: Dependency
Resolves this dependency.

Overrides:
resolve in class Dependency

equals

public boolean equals(Object other)
Overrides:
equals in class Dependency.Planar