File: function.txt

package info (click to toggle)
povray 1%3A3.7.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 105,396 kB
  • ctags: 115,305
  • sloc: cpp: 438,613; ansic: 118,761; sh: 37,706; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,282; cs: 879; awk: 590; perl: 245; xml: 95
file content (6 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
// pattern for use in texture/pigment/normal/density
// function pattern using a user defined function
  #declare fn_X = function(x,y,z) { z + x*x + y*y }  // parabolid function
  function { fn_X(x, y, z) }
  //function { fn_X(x, y, z) } 0.5  // for use with normal{} (0...1 or more)