Class Liquid
java.lang.Object
com.codename1.gpu.shaders.Liquid
Glowing and moving liquids, and the light water throws on what lies
under it. Use with
Material.Type.PBR; the glow is emissive, so add
bloom for the full effect.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringVEC3the cool colour: lava crust, slime, the floor under water.static final StringVEC3the hot colour: molten cracks, glow, caustic light.static final StringFLOAThow bright the glow is.static final StringFLOATpattern repeats per world unit.static final StringFLOATworld height of the water surface, forcaustics. -
Method Summary
Modifier and TypeMethodDescriptionstatic ShaderMaterialcaustics()Caustics: the dancing net of light under a water surface, added to whatever the mesh already looks like.static ShaderMateriallava()Lava: dark cooling plates drifting over molten cracks that pulse.static ShaderMaterialtoxic()Toxic sludge: glossy, slowly churning, with glowing bubbles that swell and pop.
-
Field Details
-
COLOR
VEC3the cool colour: lava crust, slime, the floor under water.- See Also:
-
GLOW
-
INTENSITY
-
SCALE
-
SURFACE
-
-
Method Details
-
lava
Lava: dark cooling plates drifting over molten cracks that pulse.
Returns
a new shader material
-
toxic
Toxic sludge: glossy, slowly churning, with glowing bubbles that swell and pop.
Returns
a new shader material
-
caustics
Caustics: the dancing net of light under a water surface, added to whatever the mesh already looks like. Only below
SURFACE, fading with depth. Put it on the sea bed, pool walls and anything sunk.Returns
a new shader material
-