Class ShaderImporterImpl

java.lang.Object
foundry.veil.impl.client.render.shader.ShaderImporterImpl
All Implemented Interfaces:
ShaderImporter

public class ShaderImporterImpl extends Object implements ShaderImporter
  • Constructor Details

    • ShaderImporterImpl

      public ShaderImporterImpl(net.minecraft.server.packs.resources.ResourceProvider resourceProvider)
      Creates a new import processor that loads import files from the specified resource provider.
      Parameters:
      resourceProvider - The provider for import resources
  • Method Details

    • reset

      public void reset()
    • loadImport

      public GlslTree loadImport(ShaderPreProcessor.Context context, net.minecraft.resources.ResourceLocation name, boolean force) throws IOException
      Description copied from interface: ShaderImporter
      Loads the specified import from file assets/modid/pinwheel/shaders/include/path.glsl.
      Specified by:
      loadImport in interface ShaderImporter
      Parameters:
      name - The name of the import to load
      force - Whether to load the import nodes even if the import has already been loaded
      Returns:
      An immutable view of the nodes inside the import
      Throws:
      IOException - If there was an error loading the import file
    • addedImports

      public Set<net.minecraft.resources.ResourceLocation> addedImports()
      Specified by:
      addedImports in interface ShaderImporter
      Returns:
      A view of all imports added to the current file