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

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
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
LightConfig.Spot
Enclosing class:
LightConfig

public static class LightConfig.Point
extends LightConfig

A point 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
 LightConfig.Attenuation attenuation
          The light's attenuation parameters.
 Vector3f position
          The location of the light.
 
Fields inherited from class com.threerings.opengl.renderer.config.LightConfig
colors
 
Constructor Summary
LightConfig.Point()
           
LightConfig.Point(LightConfig.Point other)
           
LightConfig.Point(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

position

@Editable(step=0.01,
          hgroup="p")
public Vector3f position
The location of the light.


attenuation

@Editable(hgroup="p")
public LightConfig.Attenuation attenuation
The light's attenuation parameters.

Constructor Detail

LightConfig.Point

public LightConfig.Point(LightConfig.Point other)

LightConfig.Point

public LightConfig.Point(LightConfig other)

LightConfig.Point

public LightConfig.Point()
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
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.

Specified by:
createUpdater in class LightConfig