Class IBLBuilder
java.lang.Object
gaiasky.util.gdx.model.gltf.scene3d.utils.IBLBuilder
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal com.badlogic.gdx.graphics.Color
final com.badlogic.gdx.graphics.Color
final com.badlogic.gdx.utils.Array
<IBLBuilder.Light> final com.badlogic.gdx.graphics.Color
final com.badlogic.gdx.graphics.Color
boolean
boolean
-
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.Cubemap
buildEnvMap
(int size) Create an environment map, to be used withSceneSkybox
com.badlogic.gdx.graphics.Cubemap
buildIrradianceMap
(int size) Creates an irradiance map, to be used withPBRCubemapAttribute.DiffuseEnv
com.badlogic.gdx.graphics.Cubemap
buildRadianceMap
(int mipMapLevels) Creates an radiance map, to be used withPBRCubemapAttribute.SpecularEnv
generated cubemap contains mipmaps in order to perform roughness in PBR shadingstatic IBLBuilder
createCustom
(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun) static IBLBuilder
createIndoor
(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun) static IBLBuilder
createOutdoor
(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun) void
dispose()
-
Field Details
-
nearGroundColor
public final com.badlogic.gdx.graphics.Color nearGroundColor -
farGroundColor
public final com.badlogic.gdx.graphics.Color farGroundColor -
nearSkyColor
public final com.badlogic.gdx.graphics.Color nearSkyColor -
farSkyColor
public final com.badlogic.gdx.graphics.Color farSkyColor -
lights
-
renderSun
public boolean renderSun -
renderGradient
public boolean renderGradient
-
-
Method Details
-
createOutdoor
public static IBLBuilder createOutdoor(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun) -
createIndoor
public static IBLBuilder createIndoor(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun) -
createCustom
public static IBLBuilder createCustom(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun) -
dispose
public void dispose()- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-
buildEnvMap
public com.badlogic.gdx.graphics.Cubemap buildEnvMap(int size) Create an environment map, to be used withSceneSkybox
- Parameters:
size
- base size (width and height) for generated cubemap- Returns:
- generated cubemap, caller is responsible to dispose it when no longer used.
-
buildIrradianceMap
public com.badlogic.gdx.graphics.Cubemap buildIrradianceMap(int size) Creates an irradiance map, to be used withPBRCubemapAttribute.DiffuseEnv
- Parameters:
size
- base size (width and height) for generated cubemap- Returns:
- generated cubemap, caller is responsible to dispose it when no longer used.
-
buildRadianceMap
public com.badlogic.gdx.graphics.Cubemap buildRadianceMap(int mipMapLevels) Creates an radiance map, to be used withPBRCubemapAttribute.SpecularEnv
generated cubemap contains mipmaps in order to perform roughness in PBR shading- Parameters:
mipMapLevels
- how many mipmaps level, eg. 10 levels produce a 1024x1024 cubemap with mipmaps.- Returns:
- generated cubemap, caller is responsible to dispose it when no longer used.
-