Skip to content
Snippets Groups Projects
Commit 40f07f49 authored by Axel Matstoms's avatar Axel Matstoms
Browse files

Fix wave normals and add nested wave reflections

Derivatives were calculated incorrectly, basically always giving
vec3(0, 1, 0) as the normal.

Fixing this showed that the reflection ray from the surface sometimes
was below horizontal, meaning it would eventually collide with the
waves. Add more raytracing to add this kind of reflection.
parent 84ed8a1b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment