com.threerings.opengl.renderer.config
Class LightConfig.Spot

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.LightConfig
          extended by com.threerings.opengl.renderer.config.LightConfig.Point
              extended by com.threerings.opengl.renderer.config.LightConfig.Spot
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
LightConfig

public static class LightConfig.Spot
extends LightConfig.Point

A spot light.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.renderer.config.LightConfig
LightConfig.Attenuation, LightConfig.Colors, LightConfig.Directional, LightConfig.Falloff, LightConfig.Point, LightConfig.Spot
 
Field Summary
 Vector3f direction
          The spot direction.
 LightConfig.Falloff falloff
          The falloff parameters.
 
Fields inherited from class com.threerings.opengl.renderer.config.LightConfig.Point
attenuation, position
 
Fields inherited from class com.threerings.opengl.renderer.config.LightConfig
colors
 
Constructor Summary
LightConfig.Spot()
           
LightConfig.Spot(LightConfig.Point other)
           
LightConfig.Spot(LightConfig other)
           
 
Method Summary
 Light createLight(GlContext ctx, Scope scope, boolean world, List<Updater> updaters)
          Creates a light object corresponding to this configuration.
protected  Updater createUpdater(GlContext ctx, Scope scope, boolean world, Light light)
          Creates the updater for the light.
 
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

direction

@Editable(mode="normalized",
          hgroup="d")
public Vector3f direction
The spot direction.


falloff

@Editable(hgroup="d")
public LightConfig.Falloff falloff
The falloff parameters.

Constructor Detail

LightConfig.Spot

public LightConfig.Spot(LightConfig.Point other)

LightConfig.Spot

public LightConfig.Spot(LightConfig other)

LightConfig.Spot

public LightConfig.Spot()
Method Detail

createLight

public Light createLight(GlContext ctx,
                         Scope scope,
                         boolean world,
                         List<Updater> updaters)
Description copied from class: LightConfig
Creates a light object corresponding to this configuration.

Overrides:
createLight in class LightConfig.Point
world - if true, update the light's position in world space rather than view space.

createUpdater

protected Updater createUpdater(GlContext ctx,
                                Scope scope,
                                boolean world,
                                Light light)
Description copied from class: LightConfig
Creates the updater for the light.

Overrides:
createUpdater in class LightConfig.Point