Skip to content

grassydragon/Water

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Rendering caustics in a scene with water using WebGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published