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.douira.glsl_transformer.ast.transform.ASTParser parser, io.github.douira.glsl_transformer.ast.node.TranslationUnit tree, VeilJobParameters parameters) throws IOException
      Description copied from interface: ShaderModification
      Injects this modification into the specified shader source.
      Specified by:
      inject in interface ShaderModification
      Parameters:
      parser - The parser instance
      tree - The source to modify
      parameters - The parameters to use when injecting
      Throws:
      IOException - If an error occurs with the format or applying the modifications
    • 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