Skip to content

Commit

Permalink
Add fix for single float displacement in OSL ARNOLD-13576
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienHerubel committed Dec 20, 2023
1 parent 7435ca0 commit 45a1d72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/pbrlib/genosl/mx_displacement_float.osl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
void mx_displacement_float(float displacement, float scale, output displacementshader result)
{
result = vector(displacement * scale);
vector No = transform("object", N);
result = vector(No * displacement * scale);
}

0 comments on commit 45a1d72

Please sign in to comment.