Class SimpleShaderModification
java.lang.Object
foundry.veil.impl.client.render.shader.modifier.SimpleShaderModification
- All Implemented Interfaces:
- ShaderModification
- Direct Known Subclasses:
- VertexShaderModification
- 
Nested Class SummaryNested classes/interfaces inherited from interface foundry.veil.impl.client.render.shader.modifier.ShaderModificationShaderModification.Function
- 
Field SummaryFields inherited from interface foundry.veil.impl.client.render.shader.modifier.ShaderModificationIN_PATTERN, OUT_PATTERN, PLACEHOLDER_PATTERN, RETURN_PATTERN, UNIFORM_PATTERN, VERSION_PATTERN
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleShaderModification(int version, int priority, net.minecraft.resources.ResourceLocation[] includes, @Nullable String output, @Nullable String uniform, ShaderModification.Function[] functions) 
- 
Method SummaryModifier and TypeMethodDescriptionfillPlaceholders(String code) protected StringgetPlaceholder(String key) voidinject(io.github.ocelot.glslprocessor.api.node.GlslTree tree, VeilJobParameters parameters) Injects this modification into the specified shader source.intpriority()
- 
Constructor Details- 
SimpleShaderModificationpublic SimpleShaderModification(int version, int priority, net.minecraft.resources.ResourceLocation[] includes, @Nullable @Nullable String output, @Nullable @Nullable String uniform, ShaderModification.Function[] functions) 
 
- 
- 
Method Details- 
injectpublic void inject(io.github.ocelot.glslprocessor.api.node.GlslTree tree, VeilJobParameters parameters) throws io.github.ocelot.glslprocessor.api.GlslSyntaxException, IOException Description copied from interface:ShaderModificationInjects this modification into the specified shader source.- Specified by:
- injectin interface- ShaderModification
- Parameters:
- tree- The source to modify
- parameters- The parameters to use when injecting
- Throws:
- io.github.ocelot.glslprocessor.api.GlslSyntaxException- If an error occurs when parsing GLSL code
- IOException- If an error occurs with the format or applying the modifications
 
- 
fillPlaceholders
- 
getPlaceholder
- 
prioritypublic int priority()- Specified by:
- priorityin interface- ShaderModification
- Returns:
- The priority of this modification. A higher priority will be applied before a lower priority modification
 
- 
getOutput
 
-