Interface ShaderCompiler.ShaderProvider
- Enclosing interface:
ShaderCompiler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides shader sources for the compiler.
-
Method Summary
Modifier and TypeMethodDescriptiongetShader
(net.minecraft.resources.ResourceLocation location) Reads a shader source by location.
-
Method Details
-
getShader
VeilShaderSource getShader(net.minecraft.resources.ResourceLocation location) throws FileNotFoundException Reads a shader source by location.- Parameters:
location
- The location of the shader to retrieve- Returns:
- The shader source found
- Throws:
FileNotFoundException
- If the shader source does not exist
-