Package gaiasky.scene.system.render.pass
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
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 Summary
FieldsModifier and TypeFieldDescriptionstatic float
The tile detection buffer is smaller than the main window by this factor.Fields inherited from class gaiasky.scene.system.render.pass.RenderPass
condition, enabled, sceneRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
void
doneLoading
(com.badlogic.gdx.assets.AssetManager manager) Override if needed.protected void
protected void
renderPass
(ICamera camera, Object... params) We distribute the operation into five frames to distribute the load a bit.Methods inherited from class gaiasky.scene.system.render.pass.RenderPass
disable, enable, initialize, isEnabled, removeCondition, render, setCondition, setEnabled
-
Field Details
-
SVT_TILE_DETECTION_REDUCTION_FACTOR
public static float SVT_TILE_DETECTION_REDUCTION_FACTORThe 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
-
-
Method Details
-
initializeRenderPass
protected void initializeRenderPass()- Specified by:
initializeRenderPass
in classRenderPass
-
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 classRenderPass
- Parameters:
manager
- The asset manager.
-
renderPass
We distribute the operation into five frames to distribute the load a bit.- Specified by:
renderPass
in classRenderPass
- Parameters:
camera
- The camera.params
- Empty.
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
- Specified by:
dispose
in classRenderPass
-