Class ShaderSourceSet
java.lang.Object
foundry.veil.api.client.render.shader.ShaderSourceSet
A location to load shader source files from.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.FileToIdConverternet.minecraft.resources.FileToIdConverterstatic intgetShaderType(net.minecraft.resources.ResourceLocation location) Retrieves the type of shader the location points to based on extension.net.minecraft.resources.FileToIdConvertergetTypeConverter(int type) Retrieves the id converter of a shader type.
-
Constructor Details
-
ShaderSourceSet
-
-
Method Details
-
getFolder
- Returns:
- The location to load shader definitions from
-
getShaderDefinitionLister
public net.minecraft.resources.FileToIdConverter getShaderDefinitionLister()- Returns:
- The lister for shader definitions
-
getGlslConverter
public net.minecraft.resources.FileToIdConverter getGlslConverter()- Returns:
- The converter for a regular
glslshader type
-
getTypeConverter
public net.minecraft.resources.FileToIdConverter getTypeConverter(int type) Retrieves the id converter of a shader type.- Parameters:
type- The GL enum for the type- Returns:
- The file type converter or
glslif the type is unknown
-
getShaderType
public static int getShaderType(net.minecraft.resources.ResourceLocation location) Retrieves the type of shader the location points to based on extension.- Parameters:
location- The location of the file- Returns:
- The GL type of the shader or
-1if invalid
-