I'm writing my first shader for softimage, using visual c++ 2010 express. Since now everything worked like a charm, I've always found help and docs on the web.
But now I would like to add a sss feature to my shader but i still can't find information about it's calculations.
The best would be to write the sss feature to really understand what happens inside mental ray, and how to deal with lightmaps.
The other thing I am trying to do is to use the built-in misss_fast_shader inside my c++ script ; then composite the result with the other feature i've already witten.
Is it possible to "include" the misss_fast_shader into my cpp file and how can I import it?
When reading the mental ray help, I've found the mi_call_shader funcion that seems to fit but i'm not sure it is what i need.
Thanks you in advance.
For information, the feature I've already written ( the very basics ) :
Lambert, shadow color, specular, incandescence, occlusion , reflection , inirect illumination , mix 4 colors , easy framebuffer creation.
to do : sub surface scattering, refraction, opacity/transparency, translucency, z depth, motion vectors, normal pass, uv pass.
Writing Mental ray shaders : a Perceptual Introduction by Andy Kopra
Shader_p Source code