~ubuntu-branches/ubuntu/breezy/aqsis/breezy

« back to all changes in this revision

Viewing changes to shaders/matte.sl

  • Committer: Bazaar Package Importer
  • Author(s): Will Newton
  • Date: 2004-12-07 20:06:49 UTC
  • Revision ID: james.westby@ubuntu.com-20041207200649-fccswkrvp4oc8lmn
Tags: upstream-0.9.3
ImportĀ upstreamĀ versionĀ 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* matte.sl - Standard matte surface for RenderMan Interface.
 
2
 * (c) Copyright 1988, Pixar.
 
3
 *
 
4
 * The RenderMan (R) Interface Procedures and RIB Protocol are:
 
5
 *     Copyright 1988, 1989, Pixar.  All rights reserved.
 
6
 * RenderMan (R) is a registered trademark of Pixar.
 
7
 */
 
8
 
 
9
surface matte (float Ka = 1;
 
10
               float Kd = 1;)
 
11
{
 
12
    point Nf = faceforward (normalize(N),I);
 
13
    Oi = Os;
 
14
    Ci = Os * Cs * (Ka * ambient() + Kd * diffuse(Nf));
 
15
}