Hello! I'm having an issue with the way Arnold seems to be handling my OSL shaders. I've made some perlin noise for my bump map on an object, but when that object moves, the noise seems to be working in world space, rather than object space, even though I thought I'd told it to work in the latter. I've included the relevant portion of my OSL code, perhaps I've overlooked something obvious.
point pnt = P;
//noise_Bump Distribution
color z = noise("perlin", transform("object",P)*BumpNoiseScale);
//Bump_Mask_variables
bump_basic_mask = fClamp(z[0]);
bump_amped_mask = fClamp(z[0]+(z[0]*BumpNoiseAmp));
(fClamp is just a custom clamp function)
Any help would be appreciated, thank you!