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 floatThe tile detection buffer is smaller than the main window by this factor.Fields inherited from class RenderPass
condition, enabled, sceneRenderer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voiddoneLoading(com.badlogic.gdx.assets.AssetManager manager) Override if needed.protected voidprotected voidrenderPass(ICamera camera, Object... params) We distribute the operation into five frames to distribute the load a bit.Methods inherited from class 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:
initializeRenderPassin classRenderPass
-
doneLoading
public void doneLoading(com.badlogic.gdx.assets.AssetManager manager) Description copied from class:RenderPassOverride if needed. Fetches resources from the asset manager after loading.- Overrides:
doneLoadingin classRenderPass- Parameters:
manager- The asset manager.
-
renderPass
We distribute the operation into five frames to distribute the load a bit.- Specified by:
renderPassin classRenderPass- Parameters:
camera- The camera.params- Empty.
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable- Specified by:
disposein classRenderPass
-