com.threerings.opengl.renderer.config
Class ShaderConfig.FragmentLightingSnippet

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.ShaderConfig.Definition
          extended by com.threerings.opengl.renderer.config.ShaderConfig.FragmentLightingSnippet
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
ShaderConfig

public static class ShaderConfig.FragmentLightingSnippet
extends ShaderConfig.Definition

Defines a snippet that computes the fragment color based on the lighting parameters.


Field Summary
 String eyeNormal
          The variable containing the normal in eye space.
 String eyeVertex
          The variable containing the location of the vertex in eye space.
 
Fields inherited from class com.threerings.opengl.renderer.config.ShaderConfig.Definition
name
 
Constructor Summary
ShaderConfig.FragmentLightingSnippet()
           
 
Method Summary
 void getDefinitions(Scope scope, RenderState[] states, boolean vertexProgramTwoSide, List<String> defs)
          Retrieves the definitions for this config and adds them to the provided list.
 
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

eyeVertex

@Editable
public String eyeVertex
The variable containing the location of the vertex in eye space.


eyeNormal

@Editable
public String eyeNormal
The variable containing the normal in eye space.

Constructor Detail

ShaderConfig.FragmentLightingSnippet

public ShaderConfig.FragmentLightingSnippet()
Method Detail

getDefinitions

public void getDefinitions(Scope scope,
                           RenderState[] states,
                           boolean vertexProgramTwoSide,
                           List<String> defs)
Description copied from class: ShaderConfig.Definition
Retrieves the definitions for this config and adds them to the provided list.

Specified by:
getDefinitions in class ShaderConfig.Definition


Copyright © 2011. All Rights Reserved.