com.threerings.opengl.renderer.config
Class TextureConfig.Refraction

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.TextureConfig.Implementation
          extended by com.threerings.opengl.renderer.config.TextureConfig.BaseDerived
              extended by com.threerings.opengl.renderer.config.TextureConfig.Refraction
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
TextureConfig

public static class TextureConfig.Refraction
extends TextureConfig.BaseDerived

A planar refraction texture.


Field Summary
 boolean back
          Whether to enable rendering to the front and back.
 float destIndex
          The index of refraction of the destination material.
 boolean front
          Whether to enable rendering to the front and back.
 int maxDepth
          The maximum allowable depth.
 float sourceIndex
          The index of refraction of the source material.
 
Fields inherited from class com.threerings.opengl.renderer.config.TextureConfig.BaseDerived
texture
 
Constructor Summary
TextureConfig.Refraction()
           
 
Method Summary
 Texture getTexture(GlContext ctx, TextureState state, TextureUnit unit, Scope scope, List<Dependency.Adder> adders, List<Updater> updaters)
          Returns the (possibly dynamic) texture corresponding to this configuration.
 
Methods inherited from class com.threerings.opengl.renderer.config.TextureConfig.BaseDerived
getUpdateReferences, isSupported
 
Methods inherited from class com.threerings.opengl.renderer.config.TextureConfig.Implementation
getFromPool, getTexture, getUpdateResources, invalidate, returnToPool
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

front

@Editable(hgroup="f")
public boolean front
Whether to enable rendering to the front and back.


back

@Editable(hgroup="f")
public boolean back
Whether to enable rendering to the front and back.


maxDepth

@Editable(min=0.0,
          hgroup="f")
public int maxDepth
The maximum allowable depth.


sourceIndex

@Editable(min=0.0,
          step=0.01,
          hgroup="n")
public float sourceIndex
The index of refraction of the source material.


destIndex

@Editable(min=0.0,
          step=0.01,
          hgroup="n")
public float destIndex
The index of refraction of the destination material.

Constructor Detail

TextureConfig.Refraction

public TextureConfig.Refraction()
Method Detail

getTexture

public Texture getTexture(GlContext ctx,
                          TextureState state,
                          TextureUnit unit,
                          Scope scope,
                          List<Dependency.Adder> adders,
                          List<Updater> updaters)
Description copied from class: TextureConfig.Implementation
Returns the (possibly dynamic) texture corresponding to this configuration.

Overrides:
getTexture in class TextureConfig.BaseDerived


Copyright © 2011. All Rights Reserved.