Cycles: Normals for disp+bump and vector displacement
Open, LowPublic

Description

Normals for disp+bump and vector displacement (and possibly tangents as well) aren't correct currently.

Here is a render that shows the issue. Left side of the meshes is flat shading, right is smooth.

Test file:

Details

Type
Bug

At the moment the bump mapping code only works with heights, computed by taking the dot product between the normal and the displacement vector. The math in svm_node_set_bump will likely need to change quite a lot to make this work.