Here is a youtube video showing my problem:

I think I'm either doing the texture lookup on the reflection texture wrong, or the reflection or view matrix is somehow wrong.

The reflection matrix is calculated after Goldman formula with plane normal pointing in positive y-Axis (world up vector).

What am I doing wrong here? Notice the renderings of the framebuffer textures in the debug ui.

I was following this water rendering tutorial series here: Youtube Water rendering tutorial

There are other projects following this tutorial:

I couldn't find my error even after looking at the above code bases.

What might the error be? Anyone any ideas?


1 Answer 1


With the help of this article I was able to fix the problem. The problem was the the missing inversion.


The working code is available via the above given links.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.