Blender Git Loki

Git Commits -> Revision 457eadf

Revision 457eadf by Lukas Stockner (compositor-2016)
June 8, 2016, 19:45 (GMT)
Cycles: Use faster ray-quad-intersection test

The original quad intersection test works by just testing against the two triangles that define the quad.
However, in this case it's actually faster to use the same test that's also used for portals: Determining
the distance to the plane in which the quad lies, calculating the hitpoint and checking whether it's in the
quad by projecting onto the sides.

Reviewers: brecht, sergey, dingto

Reviewed By: dingto

Differential Revision: https://developer.blender.org/D2045

Commit Details:

Full Hash: 457eadf812e609862dd4afedc6a79c5b192e6b79
Parent Commit: 12523d9
Committed By: Jeroen Bakker
Lines Changed: +19, -26

2 Modified Paths:

/intern/cycles/kernel/kernel_light.h (+3, -14) (Diff)
/intern/cycles/util/util_math.h (+16, -12) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021