Class InputShaderModification

java.lang.Object
foundry.veil.impl.client.render.shader.modifier.InputShaderModification
All Implemented Interfaces:
ShaderModification

@Internal public class InputShaderModification extends Object implements ShaderModification
  • Constructor Details

    • InputShaderModification

      public InputShaderModification(int priority, String input)
  • 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: ShaderModification
      Injects this modification into the specified shader source.
      Specified by:
      inject in 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
    • priority

      public int priority()
      Specified by:
      priority in interface ShaderModification
      Returns:
      The priority of this modification. A higher priority will be applied before a lower priority modification