Class SceneSkybox
java.lang.Object
gaiasky.util.gdx.model.gltf.scene3d.scene.SceneSkybox
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IntRenderableProvider
,Updatable
public class SceneSkybox
extends Object
implements IntRenderableProvider, Updatable, com.badlogic.gdx.utils.Disposable
-
Constructor Summary
ConstructorDescriptionSceneSkybox
(OwnCubemap cubemap) Create a sky box with a default shader.SceneSkybox
(OwnCubemap cubemap, PBRShaderConfig.SRGB manualSRGB, boolean gammaCorrection) Create a sky box with color space conversion settings.SceneSkybox
(OwnCubemap cubemap, PBRShaderConfig.SRGB manualSRGB, Float gammaCorrection) Create a sky box with color space conversion settings.SceneSkybox
(OwnCubemap cubemap, IntShaderProvider shaderProvider) Create a sky box with an optional custom shader. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
com.badlogic.gdx.graphics.Color
getColor()
void
getRenderables
(com.badlogic.gdx.utils.Array<IntRenderable> renderables, com.badlogic.gdx.utils.Pool<IntRenderable> pool) ReturnsIntRenderable
instances.set
(OwnCubemap cubemap) void
setRotation
(float azymuthAngleDegree) void
setRotation
(com.badlogic.gdx.math.Matrix4 envRotation) void
update
(com.badlogic.gdx.graphics.Camera camera, float delta)
-
Constructor Details
-
SceneSkybox
Create a sky box with a default shader. -
SceneSkybox
Create a sky box with color space conversion settings.- Parameters:
manualSRGB
- seePBRShaderConfig.manualSRGB
gammaCorrection
- when null, gamma correction is disabled. seePBRShaderConfig.manualGammaCorrection
-
SceneSkybox
Create a sky box with color space conversion settings.- Parameters:
manualSRGB
- seePBRShaderConfig.manualSRGB
gammaCorrection
- when true,PBRShaderConfig.DEFAULT_GAMMA
is used.
-
SceneSkybox
Create a sky box with an optional custom shader.- Parameters:
shaderProvider
- when null, a default shader provider is used (without manual SRGB nor gamma correction). when not null, caller is responsible to dispose it.
-
-
Method Details
-
set
-
getColor
public com.badlogic.gdx.graphics.Color getColor()- Returns:
- skybox material color to be modified (default is white)
-
update
public void update(com.badlogic.gdx.graphics.Camera camera, float delta) -
getRenderables
public void getRenderables(com.badlogic.gdx.utils.Array<IntRenderable> renderables, com.badlogic.gdx.utils.Pool<IntRenderable> pool) Description copied from interface:IntRenderableProvider
ReturnsIntRenderable
instances. Renderables are obtained from the providedPool
and added to the provided array. The IntRenderables obtained usingPool.obtain()
will later be put back into the pool, do not store them internally. The resulting array can be rendered via aIntModelBatch
.- Specified by:
getRenderables
in interfaceIntRenderableProvider
- Parameters:
renderables
- the output arraypool
- the pool to obtain IntRenderables from
-
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-
setRotation
public void setRotation(float azymuthAngleDegree) -
setRotation
public void setRotation(com.badlogic.gdx.math.Matrix4 envRotation)
-