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

  1. displacement bumpy( float Km = 1; string texturename = "";) 
  2. {
  3.     float amp = Km * float texture(texturename, s, t); 
  4.     P += amp * normalize(N); 
  5.     N = calculatenormal(P); 
  6. }
  7.