Class FrameGraphSetupEvent

java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.FrameGraphSetupEvent

public final class FrameGraphSetupEvent extends net.neoforged.bus.api.Event
Fired when the frame graph is set up at the start of level rendering, right before the vanilla frame passes are set up.

This event is not cancellable.

This event is fired on the main Forge event bus, only on the logical client.

  • Field Details

    • builder

      private final FrameGraphBuilder builder
    • targets

      private final LevelTargetBundle targets
    • renderTargetDescriptor

      private final RenderTargetDescriptor renderTargetDescriptor
    • frustum

      private final Frustum frustum
    • camera

      private final Camera camera
    • modelViewMatrix

      private final org.joml.Matrix4f modelViewMatrix
    • projectionMatrix

      private final org.joml.Matrix4f projectionMatrix
    • deltaTracker

      private final DeltaTracker deltaTracker
    • profiler

      private final ProfilerFiller profiler
    • enableOutline

      private boolean enableOutline
  • Constructor Details

  • Method Details

    • getFrameGrapBuilder

      public FrameGraphBuilder getFrameGrapBuilder()
      Returns the FrameGraphBuilder used to set up the frame graph.
      Returns:
      the FrameGraphBuilder used to set up the frame graph
    • getTargetBundle

      public LevelTargetBundle getTargetBundle()
      Returns the render targets used during level rendering.
      Returns:
      the render targets used during level rendering
    • getRenderTargetDescriptor

      public RenderTargetDescriptor getRenderTargetDescriptor()
      Returns the render target descriptor to use for creating full-screen render targets.
      Returns:
      the render target descriptor to use for creating full-screen render targets
    • getFrustum

      public Frustum getFrustum()
      Returns the culling frustum.
      Returns:
      the culling frustum
    • getCamera

      public Camera getCamera()
      Returns the active Camera.
      Returns:
      the active Camera
    • getModelViewMatrix

      public org.joml.Matrix4f getModelViewMatrix()
      Returns the model view matrix.
      Returns:
      the model view matrix
    • getProjectionMatrix

      public org.joml.Matrix4f getProjectionMatrix()
      Returns the projection matrix.
      Returns:
      the projection matrix
    • getDeltaTracker

      public DeltaTracker getDeltaTracker()
      Returns the DeltaTracker.
      Returns:
      the DeltaTracker
    • getProfiler

      public ProfilerFiller getProfiler()
      Returns the active profiler.
      Returns:
      the active profiler
    • enableOutlineProcessing

      public void enableOutlineProcessing()
      Enables the entity outline post-processing shader regardless of any entities having active outlines
    • isOutlineProcessingEnabled

      public boolean isOutlineProcessingEnabled()
      Returns whether the entity outline post-processing shader will be enabled regardless of entities using it.
      Returns:
      whether the entity outline post-processing shader will be enabled regardless of entities using it