Class ShaderPredefinitionProcessor
java.lang.Object
foundry.veil.api.client.render.shader.processor.ShaderPredefinitionProcessor
- All Implemented Interfaces:
ShaderPreProcessor
Adds the predefinition data to shaders.
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
ShaderPreProcessor.Context
-
Field Summary
Fields inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
NOOP, UNIFORM_PATTERN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmodify
(ShaderPreProcessor.Context context, String source) Modifies the specified shader source input.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
prepare
-
Constructor Details
-
ShaderPredefinitionProcessor
public ShaderPredefinitionProcessor()
-
-
Method Details
-
modify
Description copied from interface:ShaderPreProcessor
Modifies the specified shader source input.- Specified by:
modify
in interfaceShaderPreProcessor
- Parameters:
context
- Context for modifying shaderssource
- The GLSL source code to modify- Returns:
- The modified source or the input if nothing changed
-