Class ShaderModifyProcessor
java.lang.Object
foundry.veil.api.client.render.shader.processor.ShaderModifyProcessor
- All Implemented Interfaces:
ShaderPreProcessor
@ScheduledForRemoval(inVersion="5.0.0")
@Deprecated(forRemoval=true)
public class ShaderModifyProcessor
extends Object
implements ShaderPreProcessor
Deprecated, for removal: This API element is subject to removal in a future version.
Modifies shader sources with the shader modification system.
-
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
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidmodify(ShaderPreProcessor.Context ctx, io.github.ocelot.glslprocessor.api.node.GlslTree tree) Deprecated, for removal: This API element is subject to removal in a future version.Modifies the specified shader source input.voidprepare()Deprecated, for removal: This API element is subject to removal in a future version.Called once when a shader is first run through the pre-processor.
-
Constructor Details
-
ShaderModifyProcessor
public ShaderModifyProcessor()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
prepare
public void prepare()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ShaderPreProcessorCalled once when a shader is first run through the pre-processor.- Specified by:
preparein interfaceShaderPreProcessor
-
modify
public void modify(ShaderPreProcessor.Context ctx, io.github.ocelot.glslprocessor.api.node.GlslTree tree) throws IOException, io.github.ocelot.glslprocessor.api.GlslSyntaxException, io.github.ocelot.glslprocessor.lib.anarres.cpp.LexerException Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ShaderPreProcessorModifies the specified shader source input.- Specified by:
modifyin interfaceShaderPreProcessor- Parameters:
ctx- Context for modifying shaderstree- The GLSL source code tree to modify- Throws:
IOException- If any error occurs while editing the sourceio.github.ocelot.glslprocessor.api.GlslSyntaxException- If there was an error in the syntax of the source codeio.github.ocelot.glslprocessor.lib.anarres.cpp.LexerException- If an error occurs during shader C preprocessing
-
ShaderInjectProcessorinstead.