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

« back to all changes in this revision

Viewing changes to shaders/metal.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
/* metal.sl - Standard metal 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
 
 
10
surface
 
11
metal (float Ka = 1;
 
12
       float Ks = 1;
 
13
       float roughness = .1;)
 
14
{
 
15
    point Nf = faceforward (normalize(N),I);
 
16
/*      point Nf = normalize(N);*/
 
17
    point V = -normalize(I);
 
18
    Oi = Os;
 
19
    Ci = Os * Cs * (Ka*ambient() + Ks*specular(Nf,V,roughness));
 
20
}
 
21