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
ConstructorsConstructorDescriptionSceneSkybox(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 TypeMethodDescriptionvoiddispose()com.badlogic.gdx.graphics.ColorgetColor()voidgetRenderables(com.badlogic.gdx.utils.Array<IntRenderable> renderables, com.badlogic.gdx.utils.Pool<IntRenderable> pool) ReturnsIntRenderableinstances.set(OwnCubemap cubemap) voidsetRotation(float azymuthAngleDegree) voidsetRotation(com.badlogic.gdx.math.Matrix4 envRotation) voidupdate(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.manualSRGBgammaCorrection- when null, gamma correction is disabled. seePBRShaderConfig.manualGammaCorrection
-
SceneSkybox
Create a sky box with color space conversion settings.- Parameters:
manualSRGB- seePBRShaderConfig.manualSRGBgammaCorrection- when true,PBRShaderConfig.DEFAULT_GAMMAis 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:IntRenderableProviderReturnsIntRenderableinstances. Renderables are obtained from the providedPooland 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:
getRenderablesin interfaceIntRenderableProvider- Parameters:
renderables- the output arraypool- the pool to obtain IntRenderables from
-
dispose
public void dispose()- Specified by:
disposein interfacecom.badlogic.gdx.utils.Disposable
-
setRotation
public void setRotation(float azymuthAngleDegree) -
setRotation
public void setRotation(com.badlogic.gdx.math.Matrix4 envRotation)
-