File: slope.txt

package info (click to toggle)
povray 1%3A3.7.0.8-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 146,872 kB
  • sloc: cpp: 845,005; ansic: 122,118; sh: 34,206; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,387; cs: 879; awk: 590; perl: 245; xml: 95
file content (22 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// pattern for use in texture/pigment
// this pattern can only be used when applied to an object
// value is influenced by the slope of the object
  slope
    y,              // direction vector for slope
    //y,            // optional: dependency from altitude
    //<0.5,1.0>,    // optional: range of slope values
    //<0.75,1.0>    // optional: range of altitude values


// alternativly (new in 3.7): 
/* 
slope { point_at <ReferencePoint> [, Lo_Slope, Hi_Slope] }
  
  (Note that this variant currently does *not* allow for the "altitude" keyword to be used.)
	
      The functionality is similar to MegaPOV's "aoi <ReferencePoint>" pattern, 
      except that the values are reversed, i.e. range from 0.0 for surfaces 
      facing away from the point in question, to 1.0 for surfaces facing towards 
      that point; thus, "slope { <Vector> }" and "slope { point_at 
      <Vector>*VeryLargeNumber }" have virtually the same effect.
*/