Class IBLBuilder

java.lang.Object
gaiasky.util.gdx.model.gltf.scene3d.utils.IBLBuilder
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable

public class IBLBuilder extends Object implements com.badlogic.gdx.utils.Disposable
  • 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

      public final com.badlogic.gdx.utils.Array<IBLBuilder.Light> 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 interface com.badlogic.gdx.utils.Disposable
    • buildEnvMap

      public com.badlogic.gdx.graphics.Cubemap buildEnvMap(int size)
      Create an environment map, to be used with SceneSkybox
      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 with PBRCubemapAttribute.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 with PBRCubemapAttribute.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.