Class SimpleShaderModification
java.lang.Object
foundry.veil.render.shader.modifier.SimpleShaderModification
- All Implemented Interfaces:
ShaderModification
- Direct Known Subclasses:
VertexShaderModification
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.render.shader.modifier.ShaderModification
ShaderModification.Function -
Field Summary
Fields inherited from interface foundry.veil.render.shader.modifier.ShaderModification
ALLOW_OUT, APPLY_VERSION, IN_PATTERN, OUT_PATTERN, PLACEHOLDER_PATTERN, RETURN_PATTERN, UNIFORM_PATTERN, VERSION_PATTERN -
Constructor Summary
ConstructorsConstructorDescriptionSimpleShaderModification(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 StringgetPlaceholder(String key) intInjects this modification into the specified shader source.protected voidprocessBody(int pointer, StringBuilder builder)
-
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
Description copied from interface:ShaderModificationInjects this modification into the specified shader source.- Specified by:
injectin interfaceShaderModification- Parameters:
source- The source to inject intoflags- The flags to use when injecting- Returns:
- The injected shader source
- Throws:
IOException- If an error occurs with the format or applying the modifications
-
processBody
- Throws:
IOException
-
fillPlaceholders
-
getPlaceholder
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceShaderModification- Returns:
- The priority of this modification. A higher priority will be applied before a lower priority modification
-
getOutput
-