codeonwort / pathosengine

OpenGL Rendering Engine for Study
MIT License
20 stars 0 forks source link

Specular IBL #12

Closed codeonwort closed 4 years ago

codeonwort commented 4 years ago

Super buggy :(

wrong_1 Wrong reflection

wrong_2 WTF???

codeonwort commented 4 years ago

OK... What am I doing wrong?

codeonwort commented 4 years ago

View-space and world-space values are all correct (as I believe) but reflection is still wrong :/

reflection_wrong_1

reflection_wrong_2

codeonwort commented 4 years ago

What's wrong was the camera position, not view vector nor normal vector. I feel stupid...