Class ShaderVersionProcessor
java.lang.Object
foundry.veil.api.client.render.shader.processor.ShaderVersionProcessor
- All Implemented Interfaces:
ShaderPreProcessor
Adds the version and required extensions for all shaders that do not define a version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
ShaderPreProcessor.Context -
Field Summary
FieldsFields inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
NOOP, UNIFORM_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringmodify(@NotNull 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, waitMethods inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
prepare
-
Field Details
-
PATTERN
-
-
Constructor Details
-
ShaderVersionProcessor
public ShaderVersionProcessor()
-
-
Method Details
-
modify
@NotNull public @NotNull String modify(@NotNull @NotNull ShaderPreProcessor.Context context, String source) Description copied from interface:ShaderPreProcessorModifies the specified shader source input.- Specified by:
modifyin interfaceShaderPreProcessor- Parameters:
context- Context for modifying shaderssource- The GLSL source code to modify- Returns:
- The modified source or the input if nothing changed
-