com.threerings.opengl.scene.config
Class ShadowConfig.SilhouetteTexture

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.scene.config.ShadowConfig
          extended by com.threerings.opengl.scene.config.ShadowConfig.SilhouetteTexture
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ShadowConfig

public static class ShadowConfig.SilhouetteTexture
extends ShadowConfig

Generates shadows by rendering the silhouettes of shadow casters from the perspective of the light into a texture and projecting that texture onto shadow receivers.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.scene.config.ShadowConfig
ShadowConfig.Data, ShadowConfig.SilhouetteTexture, ShadowConfig.TextureData
 
Field Summary
 ColorStateConfig colorState
          The color state for the projection.
 float far
          The distance to the far clip plane.
 ConfigReference<MaterialConfig> material
          The projection material.
 float near
          The distance to the near clip plane.
 
Constructor Summary
ShadowConfig.SilhouetteTexture()
           
 
Method Summary
 SceneInfluence createInfluence(GlContext ctx, Scope scope, LightConfig lightConfig, Light viewLight, ArrayList<Updater> updaters)
          Creates the scene influence corresponding to this config.
 
Methods inherited from class com.threerings.opengl.scene.config.ShadowConfig
getProjectionScheme
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

near

@Editable(min=0.0,
          step=0.01,
          hgroup="f")
public float near
The distance to the near clip plane.


far

@Editable(min=0.0,
          step=0.01,
          hgroup="f")
public float far
The distance to the far clip plane.


material

@Editable(nullable=true)
public ConfigReference<MaterialConfig> material
The projection material.


colorState

@Editable(nullable=true)
public ColorStateConfig colorState
The color state for the projection.

Constructor Detail

ShadowConfig.SilhouetteTexture

public ShadowConfig.SilhouetteTexture()
Method Detail

createInfluence

public SceneInfluence createInfluence(GlContext ctx,
                                      Scope scope,
                                      LightConfig lightConfig,
                                      Light viewLight,
                                      ArrayList<Updater> updaters)
Description copied from class: ShadowConfig
Creates the scene influence corresponding to this config.

Specified by:
createInfluence in class ShadowConfig
updaters - a list to populate with required updaters.