default.txt 430 B

123456789101112131415
  1. #define TEST_DEFINE 3.14
  2. /* plastic surface shader
  3. *
  4. * Pixie is:
  5. * (c) Copyright 1999-2003 Okan Arikan. All rights reserved.
  6. */
  7. surface plastic (float Ka = 1, Kd = 0.5, Ks = 0.5, roughness = 0.1;
  8. color specularcolor = 1;) {
  9. normal Nf = faceforward (normalize(N),I);
  10. Ci = Cs * (Ka*ambient() + Kd*diffuse(Nf)) + specularcolor * Ks *
  11. specular(Nf,-normalize(I),roughness);
  12. Oi = Os;
  13. Ci *= Oi;
  14. }