Skip to content

Latest commit

 

History

History
48 lines (26 loc) · 769 Bytes

README.md

File metadata and controls

48 lines (26 loc) · 769 Bytes

Water

Rendering caustics in a scene with water using WebGL.

Live example

https://grassydragon.github.io/Water/

Scene structure

The scene represents a part of a pond.

The scene contains:

  • the directional light;
  • the water;
  • the bottom;
  • the caustics.

The light is directed down.

The water between the water surface and the bottom isn't displayed.

Controls

Scene rotation

Drag to rotate the scene.

Scene scale

Scroll to scale the scene.

Water height

Move the slider to change the water height.

Interaction with water

Click on the water surface to create waves.

Bottom texture

Click the button below "Load Texture" to load the bottom texture from an image.

Saving image

Click "Save Image" to save an image of the scene.