Blender Git Loki

Git Commits -> Revision b54447c

Revision b54447c by Sergey Sharybin (master)
October 9, 2015, 10:58 (GMT)
Cycles: Make sure ray direction is always normalized

Ray direction is assumed to be normalized in such areas as scaling intersection
distance on instance push/pop when doing ray-scene intersection, but it was
possible that some closures wouldn't give normalized direction which could cause
wrong intersection checks.

Now normalization will happen on surface bounce, which could be a bit of a waste
if closure actually gives normalized direction, but currently only transparent
BSDF seems to give guaranteed normalized direction.

Commit Details:

Full Hash: b54447c0eb12d78cd1282db4cb3fb49a9be13b78
Parent Commit: 29247a7
Lines Changed: +2, -2

1 Modified Path:

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