💎 diamond refraction hack

Hi there,

Here is a diamond refraction example I’ve made some months ago for a project, but it turns out this solution is too computationally intensive for my specific need, so I might as well publish the repo.

live demo

repository

diamond-refraction-hack-with-three

7 Likes

Hi, i’ve been playing with multiside refraction recently … i have modified three.js fresnel shader to receive backfaces.

https://multiside-refraction.vercel.app

2 Likes

Interesting.

The point of my demo was to actually refract the displayed backface geometry, not only to offset the envmap sampling. So I render the backfaces first on a render target, then sample it with an offset according to the front faces normal.