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