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, ShaderPreProcessor.IncludeOverloadStrategy, ShaderPreProcessor.MinecraftContext, ShaderPreProcessor.SodiumContext, ShaderPreProcessor.VeilContext
-
Field Summary
Fields inherited from interface foundry.veil.api.client.render.shader.processor.ShaderPreProcessor
NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
modify
(ShaderPreProcessor.Context ctx, GlslTree tree) 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
-
ShaderVersionProcessor
public ShaderVersionProcessor()
-
-
Method Details
-
modify
public void modify(ShaderPreProcessor.Context ctx, GlslTree tree) throws IOException, GlslSyntaxException, LexerException Description copied from interface:ShaderPreProcessor
Modifies the specified shader source input.- Specified by:
modify
in interfaceShaderPreProcessor
- Parameters:
ctx
- Context for modifying shaderstree
- The GLSL source code tree to modify- Throws:
IOException
- If any error occurs while editing the sourceGlslSyntaxException
- If there was an error in the syntax of the source codeLexerException
- If an error occurs during shader C preprocessing
-