Package foundry.veil.render.shader
Class RenderStateShardRegistry
java.lang.Object
foundry.veil.render.shader.RenderStateShardRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.client.renderer.RenderStateShard.OutputStateShardCreate and initialize aRenderStateShard.OutputStateShardwith the given name. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
VEIL_CUSTOM
public static final net.minecraft.client.renderer.RenderStateShard.OutputStateShard VEIL_CUSTOMCreate and initialize aRenderStateShard.OutputStateShardwith the given name. When initializing yourRenderType, use the methodRenderType.CompositeState.CompositeStateBuilder.setOutputState(RenderStateShard.OutputStateShard)with the output state you created.In order to use this, create a shader that has a target and an auxtarget with the same ID as your
RenderTarget. You can now use this auxtarget as a sampler in your shader. Remember to combine the output of your post-processing shader with the mainRenderTargetin another post-processing shader.Example:
-
-
Constructor Details
-
RenderStateShardRegistry
public RenderStateShardRegistry()
-