home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Multimedia / k3d-setup-0.7.11.0.exe / share / k3d / shaders / light / k3d_shadowdistant_rim.sl < prev    next >
Encoding:
Text File  |  2008-01-23  |  609 b   |  26 lines

  1. /* renamed from MKshadowdistant_rim.sl */
  2.  
  3. light
  4. k3d_shadowdistant_rim( 
  5.     float  intensity=1 ;
  6.     color  lightcolor=1 ; 
  7.     point from = point "shader" (0,0,0) ;
  8.     point to   = point "shader" (0,0,1) ;
  9.     string shadowname="";
  10.     float samples=16;
  11.     float width=1;
  12.     float __rimlight = 0;
  13.     float __nonspecular = 1;
  14.     float __nondiffuse = 1;
  15. )
  16. {
  17.     solar( to - from, 0.0 ) {
  18.         Cl = intensity * lightcolor;
  19.         if (shadowname != "") {
  20.                 Cl *= 1 - shadow(shadowname, Ps, "samples", samples,
  21.                         "swidth", width, "twidth", width);
  22.         }
  23.     }
  24. }
  25.  
  26.