Package foundry.veil.api.client.render
Class VeilRenderer
java.lang.Object
foundry.veil.api.client.render.VeilRenderer
- All Implemented Interfaces:
AutoCloseable
,org.lwjgl.system.NativeResource
Manages the render pipeline for Veil.
-
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
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
(DynamicBufferType... buffers) Disables the specified dynamic render buffers.boolean
enableBuffers
(DynamicBufferType... buffers) Enables the specified dynamic render buffers.void
free()
static CullFrustum
static boolean
hasImGui()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
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 -
LIGHT_POST
public static final net.minecraft.resources.ResourceLocation LIGHT_POST -
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
Enables the specified dynamic render buffers.- Parameters:
buffers
- The buffers to enable- Returns:
- Whether any change occurred
-
disableBuffers
Disables the specified dynamic render buffers.- Parameters:
buffers
- The buffers to disable- 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
-
hasImGui
public static boolean hasImGui()- Returns:
- Whether ImGui can be used
-
getCullingFrustum
- Returns:
- The culling frustum for the renderer
-
free
public void free()- Specified by:
free
in interfaceorg.lwjgl.system.NativeResource
-