Swap args of Plane(point, normal) constructor

Now (normal, point)
This commit is contained in:
mennomax 2021-04-08 16:26:14 +02:00 committed by Aaron Franke
parent 96410f55b2
commit b4eeeb315a
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
20 changed files with 88 additions and 77 deletions

View file

@ -289,7 +289,7 @@ public:
e.touches_near = min_d < z_near;
} else {
//contains camera inside light
Plane base_plane(xform.origin, -xform.basis.get_axis(Vector3::AXIS_Z));
Plane base_plane(-xform.basis.get_axis(Vector3::AXIS_Z), xform.origin);
float dist = base_plane.distance_to(Vector3());
if (dist >= 0 && dist < radius) {
//inside, check angle