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

« back to all changes in this revision

Viewing changes to shaders/pointlight.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
/* pointlight.sl - Standard point 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
light
 
10
pointlight (float intensity = 1;
 
11
            color lightcolor = 1;
 
12
            point from = point "shader" (0,0,0);)
 
13
{
 
14
  illuminate (from)
 
15
      Cl = intensity * lightcolor / (L . L);
 
16
}