I am transitioning from writing Pattern plugins for RenderMan to writing shaders for Arnold. I have made some progress but I badly need to find example c++ code to help me development my skills. Is there a download site where I can get sample shader code, examples of how to write procedural plugins etc?
Sorry found examples at https://trac.solidangle.com/arnoldpedia/browser/trunk/shaders
Those are ancient. Instead, check out the SItoA source on https://github.com/Autodesk/sitoa
Thank you Stephen. When a shader is built and loaded by Hypershade it has Out Color and Out Transparency as its outputs. I think I am correct in saying that only one of the AtParamValue members can be assigned a value. For example,
sg->out.RGB() = AtRGB_value;
or
sg->out.FLT() = float_value;
My question is how does a shader assign RGB values to BOTH Out Color and Out Transparency? Finally, have any detailed docs been published that explains the nitty gritty of shader writing?
Many thanks for you help.
Malcolm
Savannah College of Art and Design
Savannah
Georgia