Class ShaderRegistry
java.lang.Object
io.github.vampirestudios.vampirelib.api.ShaderRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<Map.Entry<net.minecraft.resources.ResourceLocation,com.mojang.blaze3d.vertex.VertexFormat>> static Supplier<net.minecraft.client.renderer.ShaderInstance>getShader(net.minecraft.resources.ResourceLocation shader) static voidloadShader(net.minecraft.resources.ResourceLocation shader, net.minecraft.client.renderer.ShaderInstance instance) static voidregister(net.minecraft.resources.ResourceLocation shader, com.mojang.blaze3d.vertex.VertexFormat format)
-
Constructor Details
-
ShaderRegistry
public ShaderRegistry()
-
-
Method Details
-
loadShader
@Internal public static void loadShader(net.minecraft.resources.ResourceLocation shader, net.minecraft.client.renderer.ShaderInstance instance) -
register
public static void register(net.minecraft.resources.ResourceLocation shader, com.mojang.blaze3d.vertex.VertexFormat format) -
getShader
public static Supplier<net.minecraft.client.renderer.ShaderInstance> getShader(net.minecraft.resources.ResourceLocation shader) -
getRegisteredShaders
-