~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to shaders/matte.sl

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

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
}