Blender Git Loki

Git Commits -> Revision 3f4c061

Revision 3f4c061 by Sergey Sharybin (master)
October 11, 2015, 14:43 (GMT)
Fix T45058: Cycles hair shader reflects incorrectly for meshes

The issue was caused by non-continuous tangent space calculated for triangles.

This commit adds a Tangent input to Hair BSDF node which can be used to hook up
Tangent calculated form UV as an input to the node in order to make sure the
tangent space is continuous.

Doing this as an input instead of using default tangent layer from UV because of
several reasons:

- This way it's really easy to preserve compatibility with existing setups.

- Default UV map is not necessarily giving continuous space, one might want to
use other tangent space sources or distort the space for some artistic
decision.

Reviewers: juicyfruit, dingto

Reviewed By: dingto

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

Commit Details:

Full Hash: 3f4c0612fedf9d135d72c428e2433c890edb0412
Parent Commit: 34e7285
Lines Changed: +8, -2

3 Modified Paths:

/intern/cycles/kernel/svm/svm_closure.h (+4, -1) (Diff)
/intern/cycles/render/nodes.cpp (+1, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair.c (+3, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021