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
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.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(DynamicBufferType... buffers) Disables the specified dynamic render buffers.booleanenableBuffers(DynamicBufferType... buffers) Enables the specified dynamic render buffers.voidfree()static CullFrustumDeprecated.static booleanhasImGui()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
PostPipelineinstances
-
getDeferredRenderer
Deprecated.- Returns:
- The deferred renderer instance
-
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:
freein interfaceorg.lwjgl.system.NativeResource
-