public class IBLBuilder
extends java.lang.Object
implements com.badlogic.gdx.utils.Disposable
| Modifier and Type | Class and Description |
|---|---|
static class |
IBLBuilder.Light |
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.graphics.Color |
farGroundColor |
com.badlogic.gdx.graphics.Color |
farSkyColor |
com.badlogic.gdx.utils.Array<IBLBuilder.Light> |
lights |
com.badlogic.gdx.graphics.Color |
nearGroundColor |
com.badlogic.gdx.graphics.Color |
nearSkyColor |
boolean |
renderGradient |
boolean |
renderSun |
| Modifier and Type | Method and Description |
|---|---|
com.badlogic.gdx.graphics.Cubemap |
buildEnvMap(int size)
Create an environment map, to be used with
SceneSkybox |
com.badlogic.gdx.graphics.Cubemap |
buildIrradianceMap(int size)
Creates an irradiance map, to be used with
PBRCubemapAttribute.DiffuseEnv |
com.badlogic.gdx.graphics.Cubemap |
buildRadianceMap(int mipMapLevels)
Creates an radiance map, to be used with
PBRCubemapAttribute.SpecularEnv
generated cubemap contains mipmaps in order to perform roughness in PBR shading |
static 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() |
public final com.badlogic.gdx.graphics.Color nearGroundColor
public final com.badlogic.gdx.graphics.Color farGroundColor
public final com.badlogic.gdx.graphics.Color nearSkyColor
public final com.badlogic.gdx.graphics.Color farSkyColor
public final com.badlogic.gdx.utils.Array<IBLBuilder.Light> lights
public boolean renderSun
public boolean renderGradient
public static IBLBuilder createOutdoor(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun)
public static IBLBuilder createIndoor(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun)
public static IBLBuilder createCustom(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight sun)
public void dispose()
dispose in interface com.badlogic.gdx.utils.Disposablepublic com.badlogic.gdx.graphics.Cubemap buildEnvMap(int size)
SceneSkyboxsize - base size (width and height) for generated cubemappublic com.badlogic.gdx.graphics.Cubemap buildIrradianceMap(int size)
PBRCubemapAttribute.DiffuseEnvsize - base size (width and height) for generated cubemappublic com.badlogic.gdx.graphics.Cubemap buildRadianceMap(int mipMapLevels)
PBRCubemapAttribute.SpecularEnv
generated cubemap contains mipmaps in order to perform roughness in PBR shadinglevels - mipMapLevels how many mipmaps level, eg. 10 levels produce a 1024x1024 cubemap with mipmaps.