0
$\begingroup$

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?

$\endgroup$
0
$\begingroup$

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

http://www.bcnine.com/articles/water/water.md.html

The working code is available via the above given links.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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