Class VeilRenderer

java.lang.Object
foundry.veil.api.client.render.VeilRenderer
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource

public class VeilRenderer extends Object implements org.lwjgl.system.NativeResource
Manages the render pipeline for Veil.
  • 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

      @Internal public void addDebugInfo(Consumer<String> consumer)
    • enableBuffers

      public boolean enableBuffers(DynamicBufferType... buffers)
      Enables the specified dynamic render buffers.
      Parameters:
      buffers - The buffers to enable
      Returns:
      Whether any change occurred
    • disableBuffers

      public boolean disableBuffers(DynamicBufferType... buffers)
      Disables the specified dynamic render buffers.
      Parameters:
      buffers - The buffers to disable
      Returns:
      Whether any change occurred
    • getVanillaShaderCompiler

      public VanillaShaderCompiler getVanillaShaderCompiler()
      Returns:
      The Veil compiler for vanilla shaders
    • getDynamicBufferManger

      public DynamicBufferManger getDynamicBufferManger()
      Returns:
      The manger for all dynamically added framebuffer attachments
    • getShaderModificationManager

      public ShaderModificationManager getShaderModificationManager()
      Returns:
      The manager for all custom shader modifications
    • getShaderDefinitions

      public ShaderPreDefinitions getShaderDefinitions()
      Returns:
      The set of shader pre-definitions. Changes are automatically synced the next frame
    • getShaderManager

      public ShaderManager getShaderManager()
      Returns:
      The manager for all veil shaders
    • getFramebufferManager

      public FramebufferManager getFramebufferManager()
      Returns:
      The manager for all custom veil framebuffers
    • getPostProcessingManager

      public PostProcessingManager getPostProcessingManager()
      Returns:
      The manager for all PostPipeline instances
    • getDynamicRenderTypeManager

      public DynamicRenderTypeManager getDynamicRenderTypeManager()
      Returns:
      The manager for all data-driven render types
    • getParticleManager

      public ParticleSystemManager getParticleManager()
      Returns:
      The manager for all quasar particles
    • getEditorManager

      public EditorManager getEditorManager()
      Returns:
      The manager for all editors
    • getCameraMatrices

      public CameraMatrices getCameraMatrices()
      Returns:
      The camera matrices instance
    • getLightRenderer

      public LightRenderer getLightRenderer()
      Returns:
      The Veil light renderer instance
    • getGuiInfo

      public GuiInfo getGuiInfo()
      Returns:
      The gui info instance
    • hasImGui

      public static boolean hasImGui()
      Returns:
      Whether ImGui can be used
    • getCullingFrustum

      public static CullFrustum getCullingFrustum()
      Returns:
      The culling frustum for the renderer
    • free

      public void free()
      Specified by:
      free in interface org.lwjgl.system.NativeResource