Shadeop - Meaning in The RenderMan Context - Example

Example

The following example shader makes use of the ambient, diffuse, faceforward, normalize and transform built-in shadeops as well as the checkerboard user-defined RSL plugin shadeop.

plugin "checkerboard"; surface checkmatte(float Ka = 1, Kd = 1;) { normal Nf = faceforward(normalize(N), I); color pattern = checkerboard(transform("object", P)); Oi = Os; Ci = Oi * Cs * pattern * (Ka * ambient + Kd * diffuse(Nf)); }

Read more about this topic:  Shadeop, Meaning in The RenderMan Context

Famous quotes containing the word example:

    Our intellect is not the most subtle, the most powerful, the most appropriate, instrument for revealing the truth. It is life that, little by little, example by example, permits us to see that what is most important to our heart, or to our mind, is learned not by reasoning but through other agencies. Then it is that the intellect, observing their superiority, abdicates its control to them upon reasoned grounds and agrees to become their collaborator and lackey.
    Marcel Proust (1871–1922)