com.threerings.opengl.renderer.config
Class ShaderConfig.Fragment
java.lang.Object
com.threerings.util.DeepObject
com.threerings.opengl.renderer.config.ShaderConfig.Implementation
com.threerings.opengl.renderer.config.ShaderConfig.Original
com.threerings.opengl.renderer.config.ShaderConfig.Fragment
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
- Enclosing class:
- ShaderConfig
public static class ShaderConfig.Fragment
- extends ShaderConfig.Original
A fragment shader.
contents
@Editable
public ShaderConfig.Fragment.Contents contents
- The initial contents of the shader.
ShaderConfig.Fragment
public ShaderConfig.Fragment()
getUpdateResources
public void getUpdateResources(HashSet<String> paths)
- Description copied from class:
ShaderConfig.Implementation
- Adds the implementation's update resources to the provided set.
- Overrides:
getUpdateResources in class ShaderConfig.Implementation
populateDescriptor
public void populateDescriptor(GlContext ctx,
PassDescriptor desc)
- Description copied from class:
ShaderConfig.Implementation
- Populates the relevant portion of the supplied descriptor.
- Specified by:
populateDescriptor in class ShaderConfig.Implementation
getShader
public Shader getShader(GlContext ctx,
Scope scope,
RenderState[] states,
boolean vertexProgramTwoSide)
- Description copied from class:
ShaderConfig.Implementation
- Returns the shader corresponding to this configuration.
- Specified by:
getShader in class ShaderConfig.Implementation
Copyright © 2011. All Rights Reserved.