An repo of ocean animation aimed to test basic physics-based rendering.
Relevant reference:
Parallax mapping
Ocean floor (find normal maps for “sandy floor”)
Caustics
-
https://medium.com/@evanwallace/rendering-realtime-caustics-in-webgl-2a99a29a0b2c
-
http://www.graphics.stanford.edu/courses/cs348b-competition/cs348b-16/second_report.pdf
Extras
Procedurally generated water (Animated)
-
Trochoidal wave (given position on plane, find displacement; vertex shader)
-
Noise displacement (sample from texture)
-
Combine with caustics to determine underwater illumination
Color attenuation (fogging?)
This project has following dependencies:
- glm
- eigen
- imgui
- glad and glfw
All dependencies are self-served, so one would only needs to use this repo and run the code.