You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix water artifact when looking at water on the horizon/with low incidence angle (#935)
* Change all access to ray.n to use getter/setter so we can keep track of the geometry normal and the shading normal at the same time
* Take the real geometry normal into account when computing ray direction for reflection or refraction to not go through the geometry
* Make the code work even if the face faces the other direction.
Copy the vector in setN rather keeping a reference on it (caused issue when the vector was reused by the caller of setN)
* Oops bad rebase (more usage of setN)
* Add function to set and orient ray.n and use it everywhere to save on an allocation (and simplify the code)
* Rename normal related methods and add a bit of javadoc
0 commit comments