Class SVTRenderPass

java.lang.Object
gaiasky.scene.system.render.pass.RenderPass
gaiasky.scene.system.render.pass.SVTRenderPass
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public class SVTRenderPass extends RenderPass
Render pass for the sparse virtual textures. The operation is distributed over 5 consecutive frames to even out the contributions and achieve regular frame pacing.
  • Field Details

    • SVT_TILE_DETECTION_REDUCTION_FACTOR

      public static float SVT_TILE_DETECTION_REDUCTION_FACTOR
      The tile detection buffer is smaller than the main window by this factor. Should match the constant with the same name in svt.detection.fragment.glsl and tess.svt.detection.fragment.glsl.
  • Constructor Details

    • SVTRenderPass

      public SVTRenderPass(SceneRenderer sceneRenderer)
  • Method Details

    • initializeRenderPass

      protected void initializeRenderPass()
      Specified by:
      initializeRenderPass in class RenderPass
    • doneLoading

      public void doneLoading(com.badlogic.gdx.assets.AssetManager manager)
      Description copied from class: RenderPass
      Override if needed. Fetches resources from the asset manager after loading.
      Overrides:
      doneLoading in class RenderPass
      Parameters:
      manager - The asset manager.
    • renderPass

      protected void renderPass(ICamera camera, Object... params)
      We distribute the operation into five frames to distribute the load a bit.
      Specified by:
      renderPass in class RenderPass
      Parameters:
      camera - The camera.
      params - Empty.
    • dispose

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Specified by:
      dispose in class RenderPass