Class RenderStateShardRegistry

java.lang.Object
foundry.veil.render.shader.RenderStateShardRegistry

public class RenderStateShardRegistry extends Object
  • Field Details

    • VEIL_CUSTOM

      public static final net.minecraft.client.renderer.RenderStateShard.OutputStateShard VEIL_CUSTOM
      Create and initialize a RenderStateShard.OutputStateShard with the given name. When initializing your RenderType, use the method RenderType.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 main RenderTarget in another post-processing shader.

      Example:

  • Constructor Details

    • RenderStateShardRegistry

      public RenderStateShardRegistry()