engine icon indicating copy to clipboard operation
engine copied to clipboard

Add advanced refractions

Open GSterbrant opened this issue 3 years ago • 0 comments

Description

Refractions currently only takes into account the environment reflections, which gives an underwhelming impression of refractive surfaces, see #4437 for an example.

In order to fix this, we need to consider the world space position of the point of refraction, as well as the refraction vector in order to accurately sample from the background, and also provide a fallback for when the refraction vector goes out of bounds.

GSterbrant avatar Jul 15 '22 11:07 GSterbrant