com.threerings.opengl.renderer.config
Class ShaderConfig.Vertex.SourceFile
java.lang.Object
com.threerings.util.DeepObject
com.threerings.opengl.renderer.config.ShaderConfig.Vertex.Contents
com.threerings.opengl.renderer.config.ShaderConfig.Vertex.SourceFile
- All Implemented Interfaces:
- Exportable, Copyable, Cloneable
- Enclosing class:
- ShaderConfig.Vertex
public static class ShaderConfig.Vertex.SourceFile
- extends ShaderConfig.Vertex.Contents
Creates a shader from the specified file.
file
@Editable(editor="resource",
nullable=true)
@FileConstraints(description="m.vertex_shader_files",
extensions=".vert",
directory="shader_dir")
public String file
- The resource from which to load the shader.
definitions
@Editable
public ShaderConfig.Definition[] definitions
- The preprocessor definitions to use.
ShaderConfig.Vertex.SourceFile
public ShaderConfig.Vertex.SourceFile()
getUpdateResources
public void getUpdateResources(HashSet<String> paths)
- Description copied from class:
ShaderConfig.Vertex.Contents
- Adds the contents' update resources to the provided set.
- Overrides:
getUpdateResources in class ShaderConfig.Vertex.Contents
getShader
public Shader getShader(GlContext ctx,
Scope scope,
RenderState[] states,
boolean vertexProgramTwoSide)
- Description copied from class:
ShaderConfig.Vertex.Contents
- Returns the shader.
- Specified by:
getShader in class ShaderConfig.Vertex.Contents
Copyright © 2011. All Rights Reserved.