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

« back to all changes in this revision

Viewing changes to shaders/bumpy.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
/* bumpy.sl - Standard distant light source 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
displacement
 
10
bumpy(
 
11
        float Km = 1;
 
12
        string texturename = "";)
 
13
{
 
14
        float amp = Km * float texture(texturename, s, t);
 
15
        P += amp * normalize(N);
 
16
        N = calculatenormal(P);
 
17
}
 
18