Bump node in Cycles, with an OSL script -- am I doing it wrong? I'm relatively new to Cycles, so maybe I don't understand all its finer points yet. I am trying to create a normal map from a grayscale bump map produced by an OSL script. The script seems to output the grayscale data just fine, as seen here (output through an emission shader for visibility purposes):



But when I try putting that through the bump node, I get nada in the resulting normal output:



Just to be sure I'm doing something stupid, I tried the same node setup but with a noise texture node instead of the script's output for the bump node's "height" input, and got the expected results.

I haven't been able to find much info about the bump node, but is there a reason it can't use the grayscale data from an OSL script for the height info? If so, is there any way to work around that?
Add a Texture Coordinates node, and possibly a vector Mapping node and feeding that into your scripts Vector input.



Even for generated coordinates I've seen better results using a texture input and mapping node for vector input over default coordinates received within osl scripts.