Class ScenePresets.Preset
java.lang.Object
com.codename1.gpu.shaders.ScenePresets.Preset
- Enclosing class:
ScenePresets
A light, environment, post chain and sky dome that belong together.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapply(GraphicsDevice device) Installs the light and the environment on a device.intThe colour to clear to, the horizon's, for scenes without a dome.The fog, sky light and tone mapping.getLight()The sun.getPost()Bloom, grade, vignette and grain.getSky()ASky.gradientdome material set to match.
-
Method Details
-
getLight
The sun.
Returns
the light
-
getEnvironment
The fog, sky light and tone mapping.
Returns
the environment
-
getPost
Bloom, grade, vignette and grain.
Returns
the post chain
-
getSky
A
Sky.gradientdome 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
Installs the light and the environment on a device.
Parameters
device: the device to draw with
-