Package foundry.veil.render.wrapper
Interface VeilRenderBridge
public interface VeilRenderBridge
Bridges between Minecraft and Veil render classes.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CullFrustumcreate(net.minecraft.client.renderer.culling.Frustum frustum) Creates a cull frustum helper from the specified vanilla frustum.static net.minecraft.client.renderer.RenderStateShard.OutputStateShardoutputState(AdvancedFbo framebuffer) Creates a new output state that draws into the specified Veil framebuffer.static net.minecraft.client.renderer.RenderStateShard.OutputStateShardoutputState(Supplier<AdvancedFbo> framebuffer) Creates a new output state that draws into the specified Veil framebuffer.static net.minecraft.client.renderer.RenderStateShard.OutputStateShardoutputState(net.minecraft.resources.ResourceLocation framebuffer) Creates a new output state that draws into the specified Veil framebuffer.static net.minecraft.client.renderer.RenderStateShard.ShaderStateShardshaderState(ShaderProgram shader) Creates a new shader state that points to the specified Veil shader name.static net.minecraft.client.renderer.RenderStateShard.ShaderStateShardshaderState(Supplier<ShaderProgram> shader) Creates a new shader state that points to the specified Veil shader name.static net.minecraft.client.renderer.RenderStateShard.ShaderStateShardshaderState(net.minecraft.resources.ResourceLocation shader) Creates a new shader state that points to the specified Veil shader name.static AdvancedFbowrap(com.mojang.blaze3d.pipeline.RenderTarget renderTarget) Wraps the specified render target in a new advanced fbo.static AdvancedFboWraps the specified render target in a new advanced fbo.
-
Method Details
-
create
Creates a cull frustum helper from the specified vanilla frustum.- Parameters:
frustum- The frustum to use for the cull frustum- Returns:
- The cull frustum
-
wrap
Wraps the specified render target in a new advanced fbo.- Parameters:
renderTarget- The render target instance- Returns:
- A new advanced fbo that wraps the target in the api
-
wrap
Wraps the specified render target in a new advanced fbo.- Parameters:
renderTargetSupplier- The supplier to the render target instance- Returns:
- A new advanced fbo that wraps the target in the api
-
shaderState
static net.minecraft.client.renderer.RenderStateShard.ShaderStateShard shaderState(net.minecraft.resources.ResourceLocation shader) Creates a new shader state that points to the specified Veil shader name.- Parameters:
shader- The name of the shader to point to.- Returns:
- A new shader state shard for that shader
-
shaderState
static net.minecraft.client.renderer.RenderStateShard.ShaderStateShard shaderState(ShaderProgram shader) Creates a new shader state that points to the specified Veil shader name.- Parameters:
shader- The shader to use- Returns:
- A new shader state shard for that shader
-
shaderState
static net.minecraft.client.renderer.RenderStateShard.ShaderStateShard shaderState(Supplier<ShaderProgram> shader) Creates a new shader state that points to the specified Veil shader name.- Parameters:
shader- A supplier to the shader to use- Returns:
- A new shader state shard for that shader
-
outputState
static net.minecraft.client.renderer.RenderStateShard.OutputStateShard outputState(net.minecraft.resources.ResourceLocation framebuffer) Creates a new output state that draws into the specified Veil framebuffer.- Parameters:
framebuffer- The framebuffer to use- Returns:
- A new shader state shard for that shader
-
outputState
static net.minecraft.client.renderer.RenderStateShard.OutputStateShard outputState(AdvancedFbo framebuffer) Creates a new output state that draws into the specified Veil framebuffer.- Parameters:
framebuffer- The framebuffer to use- Returns:
- A new shader state shard for that shader
-
outputState
static net.minecraft.client.renderer.RenderStateShard.OutputStateShard outputState(Supplier<AdvancedFbo> framebuffer) Creates a new output state that draws into the specified Veil framebuffer.- Parameters:
framebuffer- A supplier to the framebuffer to use- Returns:
- A new shader state shard for that shader
-