Class ShaderHolder
java.lang.Object
team.lodestar.lodestone.systems.rendering.shader.ShaderHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.mojang.blaze3d.vertex.VertexFormatprotected ExtendedShaderInstancefinal net.minecraft.resources.ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionShaderHolder(net.minecraft.resources.ResourceLocation shaderLocation, com.mojang.blaze3d.vertex.VertexFormat shaderFormat, String... uniformsToCache) -
Method Summary
Modifier and TypeMethodDescriptioncreateInstance(net.minecraft.server.packs.resources.ResourceProvider provider) Supplier<net.minecraft.client.renderer.ShaderInstance>net.minecraft.client.renderer.RenderStateShard.ShaderStateShardgetShard()
-
Field Details
-
shaderLocation
public final net.minecraft.resources.ResourceLocation shaderLocation -
shaderFormat
public final com.mojang.blaze3d.vertex.VertexFormat shaderFormat -
shaderInstance
-
uniformsToCache
-
-
Constructor Details
-
ShaderHolder
public ShaderHolder(net.minecraft.resources.ResourceLocation shaderLocation, com.mojang.blaze3d.vertex.VertexFormat shaderFormat, String... uniformsToCache)
-
-
Method Details
-
createInstance
public ExtendedShaderInstance createInstance(net.minecraft.server.packs.resources.ResourceProvider provider) throws IOException - Throws:
IOException
-
getInstance
-
getShard
public net.minecraft.client.renderer.RenderStateShard.ShaderStateShard getShard()
-