+ | Portal almost done

This commit is contained in:
RedShip
2025-02-06 19:52:12 +01:00
parent 9669526296
commit 473b4a247d
7 changed files with 24 additions and 16 deletions

View File

@ -15,7 +15,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);
mat3 reflection = mat3(1.0) - 2.0 * outerProduct(portal_1.normal, portal_2.normal);
rotation *= reflection;
}