Class IBLBuilder
java.lang.Object
gaiasky.render.gdx.model.gltf.scene3d.utils.IBLBuilder
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.badlogic.gdx.graphics.Colorfinal com.badlogic.gdx.graphics.Colorfinal com.badlogic.gdx.utils.Array<IBLBuilder.Light> final com.badlogic.gdx.graphics.Colorfinal com.badlogic.gdx.graphics.Colorbooleanboolean -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.graphics.CubemapbuildEnvMap(int size) Create an environment map, to be used withSceneSkyboxcom.badlogic.gdx.graphics.CubemapbuildIrradianceMap(int size) Creates an irradiance map, to be used withPBRCubemapAttribute.DiffuseEnvcom.badlogic.gdx.graphics.CubemapbuildRadianceMap(int mipMapLevels) Creates an radiance map, to be used withPBRCubemapAttribute.SpecularEnvgenerated cubemap contains mipmaps in order to perform roughness in PBR shadingstatic IBLBuildercreateCustom(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun) static IBLBuildercreateIndoor(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun) static IBLBuildercreateOutdoor(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun) voiddispose()
-
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:
disposein 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.SpecularEnvgenerated 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.
-