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
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocation -
Constructor Summary
ConstructorsConstructorDescriptionVeilRenderer(net.minecraft.server.packs.resources.ReloadableResourceManager resourceManager, com.mojang.blaze3d.platform.Window window) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDebugInfo(Consumer<String> consumer) booleandisableBuffers(net.minecraft.resources.ResourceLocation name) Disables the specified dynamic render buffers.booleandisableBuffers(net.minecraft.resources.ResourceLocation name, DynamicBufferType... buffers) Disables the specified dynamic render buffers.booleanenableBuffers(net.minecraft.resources.ResourceLocation name, DynamicBufferType... buffers) Enables the specified dynamic render buffers.voidendFrame()voidfree()intRetrieves the currently active dynamic buffers.voidonResourceManagerReload(@NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager) voidresize(int width, int height) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getNameMethods 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
-
getActiveBuffers
public int getActiveBuffers()Retrieves the currently active dynamic buffers.- Returns:
- The currently active buffers
- Since:
- 2.3.0
- See Also:
-
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
PostPipelineinstances
-
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(@NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager) - Specified by:
onResourceManagerReloadin interfacenet.minecraft.server.packs.resources.ResourceManagerReloadListener
-