Class InputShaderModification
java.lang.Object
foundry.veil.impl.client.render.shader.modifier.InputShaderModification
- All Implemented Interfaces:
ShaderModification
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.impl.client.render.shader.modifier.ShaderModification
ShaderModification.Function -
Field Summary
Fields inherited from interface foundry.veil.impl.client.render.shader.modifier.ShaderModification
IN_PATTERN, OUT_PATTERN, PLACEHOLDER_PATTERN, RETURN_PATTERN, UNIFORM_PATTERN, VERSION_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinject(io.github.ocelot.glslprocessor.api.node.GlslTree tree, VeilJobParameters parameters) Injects this modification into the specified shader source.intpriority()
-
Constructor Details
-
InputShaderModification
-
-
Method Details
-
inject
public void inject(io.github.ocelot.glslprocessor.api.node.GlslTree tree, VeilJobParameters parameters) throws io.github.ocelot.glslprocessor.api.GlslSyntaxException Description copied from interface:ShaderModificationInjects this modification into the specified shader source.- Specified by:
injectin interfaceShaderModification- Parameters:
tree- The source to modifyparameters- The parameters to use when injecting- Throws:
io.github.ocelot.glslprocessor.api.GlslSyntaxException- If an error occurs when parsing GLSL code
-
priority
public int priority()- Specified by:
priorityin interfaceShaderModification- Returns:
- The priority of this modification. A higher priority will be applied before a lower priority modification
-