Class ShaderImporterImpl
java.lang.Object
foundry.veil.impl.client.render.shader.ShaderImporterImpl
- All Implemented Interfaces:
ShaderImporter
-
Constructor Summary
ConstructorDescriptionShaderImporterImpl
(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> loadImport
(ShaderPreProcessor.Context context, net.minecraft.resources.ResourceLocation name, boolean force) Loads the specified import from fileassets/modid/pinwheel/shaders/include/path.glsl
.void
reset()
-
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 fileassets/modid/pinwheel/shaders/include/path.glsl
.- Specified by:
loadImport
in 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:
addedImports
in interfaceShaderImporter
- Returns:
- A view of all imports added to the current file
-