Class LodestoneRenderingSystem

java.lang.Object
team.lodestar.lodestone.modules.rendering.LodestoneRenderingSystem

public class LodestoneRenderingSystem extends Object
A handler responsible for all the backend rendering processes. To have additive transparency work in a minecraft environment, we need to buffer our rendering till after clouds and water have rendered. This happens for particles, as well as all of our custom RenderTypes
  • Field Details

    • LODESTONE_DEPTH_CACHE

      public static com.mojang.blaze3d.pipeline.RenderTarget LODESTONE_DEPTH_CACHE
    • DEFERRED_RENDER

      public static LodestoneRenderLayer DEFERRED_RENDER
    • LATE_DEFERRED_RENDER

      public static LodestoneRenderLayer LATE_DEFERRED_RENDER
    • MODEL_VIEW

      public static org.joml.Matrix4f MODEL_VIEW
    • FOG_NEAR

      public static float FOG_NEAR
    • FOG_FAR

      public static float FOG_FAR
    • FOG_RED

      public static float FOG_RED
    • FOG_GREEN

      public static float FOG_GREEN
    • FOG_BLUE

      public static float FOG_BLUE
    • FOG_SHAPE

      public static com.mojang.blaze3d.shaders.FogShape FOG_SHAPE
  • Constructor Details

    • LodestoneRenderingSystem

      public LodestoneRenderingSystem()
  • Method Details

    • resize

      public static void resize(int width, int height)
    • render

      public static void render()
    • cacheModelViewMatrix

      public static void cacheModelViewMatrix(org.joml.Matrix4f modelViewMatrix)
    • restoreModelViewMatrix

      public static void restoreModelViewMatrix()
    • clearModelViewMatrix

      public static void clearModelViewMatrix()
    • setModelViewMatrix

      public static void setModelViewMatrix(org.joml.Matrix4f modelViewMatrix)
    • copyDepthBuffer

      public static void copyDepthBuffer(com.mojang.blaze3d.pipeline.RenderTarget tempRenderTarget)
    • setupDepthBuffer

      public static void setupDepthBuffer()
    • enableStencil

      public static void enableStencil()
    • cacheFogData

      public static void cacheFogData(net.neoforged.neoforge.client.event.ViewportEvent.RenderFog event)
    • cacheFogColors

      public static void cacheFogColors(net.neoforged.neoforge.client.event.ViewportEvent.ComputeFogColor event)
    • applyCachedFogData

      public static void applyCachedFogData()
    • restoreFogData

      public static void restoreFogData()
    • updateUniforms

      public static void updateUniforms(net.minecraft.client.renderer.RenderType renderType)
    • resetUniforms

      public static void resetUniforms(net.minecraft.client.renderer.RenderType renderType)