Package foundry.veil.api.client.render
Class VeilRenderer
java.lang.Object
foundry.veil.api.client.render.VeilRenderer
- All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener
,net.minecraft.server.packs.resources.ResourceManagerReloadListener
public class VeilRenderer
extends Object
implements net.minecraft.server.packs.resources.ResourceManagerReloadListener
Manages the render pipeline for Veil.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
-
Field Summary
Modifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocation
static final net.minecraft.resources.ResourceLocation
static final net.minecraft.resources.ResourceLocation
static final net.minecraft.resources.ResourceLocation
static final net.minecraft.resources.ResourceLocation
static final net.minecraft.resources.ResourceLocation
-
Constructor Summary
ConstructorDescriptionVeilRenderer
(net.minecraft.server.packs.resources.ReloadableResourceManager resourceManager, com.mojang.blaze3d.platform.Window window) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDebugInfo
(Consumer<String> consumer) boolean
disableBuffers
(net.minecraft.resources.ResourceLocation name) Disables the specified dynamic render buffers.boolean
disableBuffers
(net.minecraft.resources.ResourceLocation name, DynamicBufferType... buffers) Disables the specified dynamic render buffers.boolean
enableBuffers
(net.minecraft.resources.ResourceLocation name, DynamicBufferType... buffers) Enables the specified dynamic render buffers.void
endFrame()
void
free()
void
onResourceManagerReload
(net.minecraft.server.packs.resources.ResourceManager resourceManager) void
resize
(int width, int height) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
Methods inherited from interface net.minecraft.server.packs.resources.ResourceManagerReloadListener
reload
-
Field Details
-
ALBEDO_BUFFER_TEXTURE
public static final net.minecraft.resources.ResourceLocation ALBEDO_BUFFER_TEXTURE -
NORMAL_BUFFER_TEXTURE
public static final net.minecraft.resources.ResourceLocation NORMAL_BUFFER_TEXTURE -
LIGHT_UV_BUFFER_TEXTURE
public static final net.minecraft.resources.ResourceLocation LIGHT_UV_BUFFER_TEXTURE -
LIGHT_COLOR_BUFFER_TEXTURE
public static final net.minecraft.resources.ResourceLocation LIGHT_COLOR_BUFFER_TEXTURE -
DEBUG_BUFFER_TEXTURE
public static final net.minecraft.resources.ResourceLocation DEBUG_BUFFER_TEXTURE -
COMPOSITE
public static final net.minecraft.resources.ResourceLocation COMPOSITE
-
-
Constructor Details
-
VeilRenderer
@Internal public VeilRenderer(net.minecraft.server.packs.resources.ReloadableResourceManager resourceManager, com.mojang.blaze3d.platform.Window window)
-
-
Method Details
-
addDebugInfo
-
enableBuffers
public boolean enableBuffers(net.minecraft.resources.ResourceLocation name, DynamicBufferType... buffers) Enables the specified dynamic render buffers.- Parameters:
name
- The name of the "source" of the buffer changebuffers
- The buffers to enable- Returns:
- Whether any change occurred
-
disableBuffers
public boolean disableBuffers(net.minecraft.resources.ResourceLocation name, DynamicBufferType... buffers) Disables the specified dynamic render buffers.- Parameters:
name
- The name of the "source" of the buffer changebuffers
- The buffers to disable- Returns:
- Whether any change occurred
-
disableBuffers
public boolean disableBuffers(net.minecraft.resources.ResourceLocation name) Disables the specified dynamic render buffers.- Parameters:
name
- The name of the "source" of the buffer change- Returns:
- Whether any change occurred
-
getVanillaShaderCompiler
- Returns:
- The Veil compiler for vanilla shaders
-
getDynamicBufferManger
- Returns:
- The manger for all dynamically added framebuffer attachments
-
getShaderModificationManager
- Returns:
- The manager for all custom shader modifications
-
getShaderDefinitions
- Returns:
- The set of shader pre-definitions. Changes are automatically synced the next frame
-
getShaderManager
- Returns:
- The manager for all veil shaders
-
getFramebufferManager
- Returns:
- The manager for all custom veil framebuffers
-
getPostProcessingManager
- Returns:
- The manager for all
PostPipeline
instances
-
getDynamicRenderTypeManager
- Returns:
- The manager for all data-driven render types
-
getParticleManager
- Returns:
- The manager for all quasar particles
-
getEditorManager
- Returns:
- The manager for all editors
-
getCameraMatrices
- Returns:
- The camera matrices instance
-
getLightRenderer
- Returns:
- The Veil light renderer instance
-
getGuiInfo
- Returns:
- The gui info instance
-
resize
@Internal public void resize(int width, int height) -
endFrame
@Internal public void endFrame() -
free
@Internal public void free() -
onResourceManagerReload
public void onResourceManagerReload(net.minecraft.server.packs.resources.ResourceManager resourceManager) - Specified by:
onResourceManagerReload
in interfacenet.minecraft.server.packs.resources.ResourceManagerReloadListener
-