I would like to use a couple of cameras for texture projection in my osl shader.
In order to transform P into the coord space of those cameras I need the matrix as I cannot directly transform into custom coordinate spaces in Arnold. Any ideas how to get this done?
Unfortunately the getmatrix osl command doesn't return the matrix for the camera, air did I get it wrong?
So I am trying now to transfer the projection matrix as custom user data (float array) into the shader but if anybody has a better idea I would like to hear about it...
Thanks,
Michael