Interface ShaderImporter
- All Known Implementing Classes:
ShaderImporterImpl
public interface ShaderImporter
Loads extra shader files to include inside others.
-
Method Summary
Modifier and TypeMethodDescriptionCollection
<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
.
-
Method Details
-
loadImport
GlslTree loadImport(ShaderPreProcessor.Context context, net.minecraft.resources.ResourceLocation name, boolean force) throws IOException Loads the specified import from fileassets/modid/pinwheel/shaders/include/path.glsl
.- 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
Collection<net.minecraft.resources.ResourceLocation> addedImports()- Returns:
- A view of all imports added to the current file
-