Class SimpleShaderModification
java.lang.Object
foundry.veil.impl.client.render.shader.modifier.SimpleShaderModification
- All Implemented Interfaces:
ShaderModification
- Direct Known Subclasses:
VertexShaderModification
-
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
ConstructorDescriptionSimpleShaderModification
(int version, int priority, net.minecraft.resources.ResourceLocation[] includes, @Nullable String output, @Nullable String uniform, ShaderModification.Function[] functions) -
Method Summary
Modifier and TypeMethodDescriptionfillPlaceholders
(String code) protected String
getPlaceholder
(String key) void
inject
(GlslTree tree, VeilJobParameters parameters) Injects this modification into the specified shader source.int
priority()
-
Constructor Details
-
SimpleShaderModification
public SimpleShaderModification(int version, int priority, net.minecraft.resources.ResourceLocation[] includes, @Nullable @Nullable String output, @Nullable @Nullable String uniform, ShaderModification.Function[] functions)
-
-
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
- 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
-
fillPlaceholders
-
getPlaceholder
-
priority
public int priority()- Specified by:
priority
in interfaceShaderModification
- Returns:
- The priority of this modification. A higher priority will be applied before a lower priority modification
-
getOutput
-