OpenShadingLanguage icon indicating copy to clipboard operation
OpenShadingLanguage copied to clipboard

OSL built-in displace() and bump() were documented but never implemented

Open lgritz opened this issue 7 years ago • 0 comments

Add them now. Also, an additional variety that takes a vector offset in a non-common space.

There's no good reason why these were never implemented. I think that people just used the P += ...; N = calculatenormal(...) idiom directly. But they were always documented in the OSL Language Spec, so I see no reason not to add them now.

lgritz avatar May 07 '18 21:05 lgritz