Blender Git Loki

Git Commits -> Revision d6e769d

Revision d6e769d by Lukas Stockner (master)
July 26, 2018, 15:00 (GMT)
Cycles: Add reflection fix to Bump and Normal Map nodes

While changing the shading normal is a great way to add additional detail to a model, there are some problems with it.
One of them is that at grazing angles and/or strong changes to the normal, the reflected ray can end up pointing into the actual geometry, which results in a black spot.

This patch helps avoid this by automatically reducing the strength of the bump/normal map if the reflected direction would end up too shallow or inside the geometry.

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

Commit Details:

Full Hash: d6e769d32e7939e3bbd1986cdc4abd2b13135eab
Parent Commit: 1c41dbb
Lines Changed: +67, -0

6 Modified Paths:

/intern/cycles/kernel/kernel_montecarlo.h (+29, -0) (Diff)
/intern/cycles/kernel/shaders/node_bump.osl (+2, -0) (Diff)
/intern/cycles/kernel/shaders/node_normal_map.osl (+2, -0) (Diff)
/intern/cycles/kernel/shaders/stdosl.h (+30, -0) (Diff)
/intern/cycles/kernel/svm/svm_displace.h (+2, -0) (Diff)
/intern/cycles/kernel/svm/svm_tex_coord.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021