Class SodiumShaderProcessor
java.lang.Object
foundry.veil.impl.client.render.shader.processor.SodiumShaderProcessor
Allows vanilla and sodium shaders to use shader modifications.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfree()static @Nullable net.minecraft.resources.ResourceLocationstatic Stringstatic voidsetShaderType(int type, net.minecraft.resources.ResourceLocation shaderName, org.lwjgl.opengl.GLCapabilities glCapabilities) static voidsetup(net.minecraft.server.packs.resources.ResourceProvider provider)
-
Constructor Details
-
SodiumShaderProcessor
public SodiumShaderProcessor()
-
-
Method Details
-
setShaderType
public static void setShaderType(int type, net.minecraft.resources.ResourceLocation shaderName, org.lwjgl.opengl.GLCapabilities glCapabilities) -
setup
public static void setup(net.minecraft.server.packs.resources.ResourceProvider provider) -
free
public static void free() -
modify
public static String modify(int activeBuffers, String source) throws IOException, io.github.ocelot.glslprocessor.api.GlslSyntaxException, io.github.ocelot.glslprocessor.lib.anarres.cpp.LexerException - Throws:
IOExceptionio.github.ocelot.glslprocessor.api.GlslSyntaxExceptionio.github.ocelot.glslprocessor.lib.anarres.cpp.LexerException
-
getActiveShaderName
@Nullable public static @Nullable net.minecraft.resources.ResourceLocation getActiveShaderName()
-