mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
~ | First denoising attempt
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user