Class ShaderImporterImpl
java.lang.Object
foundry.veil.impl.client.render.shader.ShaderImporterImpl
- All Implemented Interfaces:
ShaderImporter
-
Constructor Summary
ConstructorsConstructorDescriptionShaderImporterImpl(net.minecraft.server.packs.resources.ResourceProvider resourceProvider) Creates a new import processor that loads import files from the specified resource provider. -
Method Summary
Modifier and TypeMethodDescriptionSet<net.minecraft.resources.ResourceLocation> io.github.ocelot.glslprocessor.api.node.GlslTreeloadImport(ShaderPreProcessor.Context context, net.minecraft.resources.ResourceLocation name, boolean force) Loads the specified import from fileassets/modid/pinwheel/shaders/include/path.glsl.voidreset()
-
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 io.github.ocelot.glslprocessor.api.node.GlslTree loadImport(ShaderPreProcessor.Context context, net.minecraft.resources.ResourceLocation name, boolean force) throws IOException Description copied from interface:ShaderImporterLoads the specified import from fileassets/modid/pinwheel/shaders/include/path.glsl.- Specified by:
loadImportin interfaceShaderImporter- Parameters:
name- The name of the import to loadforce- 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
- Specified by:
addedImportsin interfaceShaderImporter- Returns:
- A view of all imports added to the current file
-