blender/intern/cycles/kernel/closure
Sergey Sharybin 7e823969b5 Fix non-finite tangent in Cycles with missing UV map
Was causing calculation issues later on in the kernel.

This change catches the most obvious case: missing attribute. The old
code was trying to set tangent to 0, but because it was transformed as
a normal it got converted to non-finite value. This change makes it so
that no transform is involved and 0 is written directly to the SVM
stack.

To cover all cases it will require using safe_normalize() in this node
and in the normal transform function. This is more involved change from
performance point of view, would be nice to verify whether we really want
to go this route.

I've left asserts in the BSDF allocation functions. Don't have strong
connection to them, but think they are handy and are not different from
having an assert in the path radiance checks.

Differential Revision: https://developer.blender.org/D11235
2021-05-12 10:06:11 +02:00
..
alloc.h Fix non-finite tangent in Cycles with missing UV map 2021-05-12 10:06:11 +02:00
bsdf_ashikhmin_shirley.h Cycles: Refactor microfacet BSDFs to remove separate anisotropy code 2020-05-15 00:52:57 +02:00
bsdf_ashikhmin_velvet.h
bsdf_diffuse_ramp.h
bsdf_diffuse.h
bsdf_hair_principled.h Cleanup: spelling 2020-09-09 13:30:05 +10:00
bsdf_hair.h
bsdf_microfacet_multi_impl.h
bsdf_microfacet_multi.h Cycles: Refactor microfacet BSDFs to remove separate anisotropy code 2020-05-15 00:52:57 +02:00
bsdf_microfacet.h Cleanup: spelling 2021-02-16 21:15:45 +11:00
bsdf_oren_nayar.h
bsdf_phong_ramp.h
bsdf_principled_diffuse.h
bsdf_principled_sheen.h Partial Fix T73043: Denoising Albedo not working well for Sheen 2020-01-20 23:06:08 +01:00
bsdf_reflection.h
bsdf_refraction.h
bsdf_toon.h
bsdf_transparent.h
bsdf_util.h Shading: Add More Features To The Voronoi Node. 2019-09-12 13:09:31 +02:00
bsdf.h Cycles: port curve-ray intersection from Embree for use in Cycles GPU 2020-06-22 13:28:01 +02:00
bssrdf.h Fix Cycles SSS incorrect rendering of zero radius in green channel 2020-09-22 16:28:12 +02:00
emissive.h
volume.h