Package foundry.veil.api.client.render
Interface VeilRenderBridge
public interface VeilRenderBridge
Bridges between Minecraft and Veil render classes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic MatrixStack
create
(com.mojang.blaze3d.vertex.PoseStack poseStack) Creates a matrix stack wrapper for the specified post stack.static CullFrustum
create
(net.minecraft.client.renderer.culling.Frustum frustum) Creates a cull frustum helper from the specified vanilla frustum.static VeilRenderTypeBuilder
create
(net.minecraft.client.renderer.RenderType.CompositeState.CompositeStateBuilder builder) Creates a render type builder helper from the specified vanilla composite state builder.static net.minecraft.client.renderer.RenderStateShard.OutputStateShard
outputState
(AdvancedFbo framebuffer) Creates a new output state that draws into the specified Veil framebuffer.static net.minecraft.client.renderer.RenderStateShard.OutputStateShard
outputState
(Supplier<AdvancedFbo> framebuffer) Creates a new output state that draws into the specified Veil framebuffer.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.static net.minecraft.client.renderer.RenderStateShard
patchState
(int patchVertices) Creates a new render state shard for tesselation patch size.static net.minecraft.client.renderer.RenderStateShard.ShaderStateShard
shaderState
(ShaderProgram shader) Creates a new shader state that points to the specified Veil shader name.static net.minecraft.client.renderer.RenderStateShard.ShaderStateShard
shaderState
(Supplier<ShaderProgram> shader) Creates a new shader state that points to the specified Veil shader name.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.static AdvancedFbo
wrap
(com.mojang.blaze3d.pipeline.RenderTarget renderTarget) Wraps the specified render target in a new advanced fbo.static AdvancedFbo
Wraps 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
-
create
static VeilRenderTypeBuilder create(net.minecraft.client.renderer.RenderType.CompositeState.CompositeStateBuilder builder) Creates a render type builder helper from the specified vanilla composite state builder.- Parameters:
builder
- The state builder to wrap- Returns:
- The render type builder
-
create
Creates a matrix stack wrapper for the specified post stack.- Parameters:
poseStack
- The pose stack to wrap- Returns:
- The matrix stack representation
-
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
-
patchState
static net.minecraft.client.renderer.RenderStateShard patchState(int patchVertices) Creates a new render state shard for tesselation patch size.- Parameters:
patchVertices
- The number of vertices per patch- Returns:
- A new patch state
-