Blender Git Commit Log

Git Commits -> Revision 7a5a025

Revision 7a5a025 by Lukas Stockner (master)
June 6, 2016, 21:38 (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: 7a5a02509bcd6f5c0fdf2df9f06537cbfd76f027
Parent Commit: ac7feae
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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021