Class ScenePresets.Preset

java.lang.Object
com.codename1.gpu.shaders.ScenePresets.Preset
Enclosing class:
ScenePresets

public static final class ScenePresets.Preset extends Object
A light, environment, post chain and sky dome that belong together.
  • Method Details

    • getLight

      public Light getLight()

      The sun.

      Returns

      the light

    • getEnvironment

      public Environment getEnvironment()

      The fog, sky light and tone mapping.

      Returns

      the environment

    • getPost

      public PostProcess getPost()

      Bloom, grade, vignette and grain.

      Returns

      the post chain

    • getSky

      public ShaderMaterial getSky()

      A Sky.gradient dome material set to match.

      Returns

      the sky shader

    • getClearColor

      public int getClearColor()

      The colour to clear to, the horizon's, for scenes without a dome.

      Returns

      an ARGB colour

    • apply

      public void apply(GraphicsDevice device)

      Installs the light and the environment on a device.

      Parameters
      • device: the device to draw with