Class SimpleShaderInjection

java.lang.Object
foundry.veil.impl.client.render.shader.injection.SimpleShaderInjection
All Implemented Interfaces:
ShaderInjection

@Internal public class SimpleShaderInjection extends Object implements ShaderInjection
  • Constructor Details

    • SimpleShaderInjection

      public SimpleShaderInjection(int version, int priority, ShaderInjectionFunction[] functions)
    • SimpleShaderInjection

      public SimpleShaderInjection(int version, int priority, ShaderInjectionFunction[] functions, @Nullable @Nullable String globals)
  • Method Details

    • inject

      public void inject(io.github.ocelot.glslprocessor.api.node.GlslTree tree, boolean applyVersion) throws io.github.ocelot.glslprocessor.api.GlslSyntaxException, IOException
      Specified by:
      inject in interface ShaderInjection
      Throws:
      io.github.ocelot.glslprocessor.api.GlslSyntaxException
      IOException
    • priority

      public int priority()
      Specified by:
      priority in interface ShaderInjection
    • getShaderInjectionFunctions

      public ShaderInjectionFunction[] getShaderInjectionFunctions()