Class InputShaderModification

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

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

    • InputShaderModification

      public InputShaderModification(int priority, Supplier<String> input)
  • Method Details

    • inject

      public String inject(String source, int flags) throws IOException
      Description copied from interface: ShaderModification
      Injects this modification into the specified shader source.
      Specified by:
      inject in interface ShaderModification
      Parameters:
      source - The source to inject into
      flags - The flags to use when injecting
      Returns:
      The injected shader source
      Throws:
      IOException - If an error occurs with the format or applying the modifications
    • getPriority

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