~ | First denoising attempt

This commit is contained in:
RedShip
2025-02-07 20:17:43 +01:00
parent 2b879218ed
commit 47bf193752
4 changed files with 44 additions and 3 deletions

View File

@ -16,6 +16,7 @@ Ray portalRay(Ray ray, hitInfo hit)
if (dot(portal_1.normal, portal_2.normal) > 0.0)
{
mat3 reflection = mat3(1.0) - 2.0 * outerProduct(portal_2.normal, portal_2.normal);
reflection *= inverse(mat3(1));
rotation *= reflection;
}