Class VertexShaderModification
java.lang.Object
foundry.veil.impl.client.render.shader.modifier.SimpleShaderModification
foundry.veil.impl.client.render.shader.modifier.VertexShaderModification
- 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
ConstructorDescriptionVertexShaderModification
(int version, int priority, net.minecraft.resources.ResourceLocation[] includes, @Nullable String output, @Nullable String uniform, ShaderModification.Function[] functions, VertexShaderModification.Attribute[] attributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getPlaceholder
(String key) void
inject
(GlslTree tree, VeilJobParameters parameters) Injects this modification into the specified shader source.Methods inherited from class foundry.veil.impl.client.render.shader.modifier.SimpleShaderModification
fillPlaceholders, getOutput, priority
-
Constructor Details
-
VertexShaderModification
public VertexShaderModification(int version, int priority, net.minecraft.resources.ResourceLocation[] includes, @Nullable @Nullable String output, @Nullable @Nullable String uniform, ShaderModification.Function[] functions, VertexShaderModification.Attribute[] attributes)
-
-
Method Details
-
inject
public void inject(GlslTree tree, VeilJobParameters parameters) throws GlslSyntaxException, IOException Description copied from interface:ShaderModification
Injects this modification into the specified shader source.- Specified by:
inject
in interfaceShaderModification
- Overrides:
inject
in classSimpleShaderModification
- Parameters:
tree
- The source to modifyparameters
- The parameters to use when injecting- Throws:
GlslSyntaxException
- If an error occurs when parsing GLSL codeIOException
- If an error occurs with the format or applying the modifications
-
getPlaceholder
- Overrides:
getPlaceholder
in classSimpleShaderModification
-