Blender Git Loki

Git Commits -> Revision 53e3e46

Revision 53e3e46 by Thomas Dinges (master)
June 15, 2015, 21:50 (GMT)
Cycles / Branched Path: Some simplifications for main loop.

The main loop only handles transparent intersections from the camera ray.
Therefore we can simplify some things.

* Avoid PATH_RAY_CAMERA check, this is always true.
* Avoid path_state_next() call, we can just set transparent flag and increase transparent bounces. This way we avoid the function call and some branching.

Also remove debug num_ray_bounces++, this is incorrect here as no indirect bounce happens here.

Should be no functional changes.

Commit Details:

Full Hash: 53e3e4633244facb76740a58f1b2b9b6c1e2a00d
Parent Commit: 888ed6b
Lines Changed: +11, -7

1 Modified Path:

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