Fix #35246: cycles has no simple way to combine bump and normal mapping. Now
the Bump node has a Normal input, so you can chain it after a Normal Map node. Note that normal mapping always has to be done first because it is tied to the particular mesh surface and tangents.
This commit is contained in:
@@ -668,7 +668,7 @@ void ShaderGraph::bump_from_displacement()
|
||||
|
||||
/* for displacement bump, clear the normal input in case the above loop
|
||||
* connected the setnormal out to the bump normalin */
|
||||
ShaderInput *bump_normal_in = bump->input("NormalIn");
|
||||
ShaderInput *bump_normal_in = bump->input("Normal");
|
||||
if(bump_normal_in)
|
||||
bump_normal_in->link = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user