/[gzz]/gzz/gfx/libpaper/texcomb_NV1X.py
ViewVC logotype

Diff of /gzz/gfx/libpaper/texcomb_NV1X.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by jvk, Thu Oct 10 16:43:38 2002 UTC revision 1.23 by jvk, Mon Oct 14 10:22:27 2002 UTC
# Line 32  class TransparentCombinerPass: Line 32  class TransparentCombinerPass:
32              texinputs = texinputs + texinputs              texinputs = texinputs + texinputs
33          t0, t1, t2, t3 = texinputs[0:4]          t0, t1, t2, t3 = texinputs[0:4]
34    
35          #c0, c1, c2 = [ "1 1 1", "1 0 0", "0 0 0"]          #c0, c1, c2 = [ "1 1 1", "1 0 1", "0 1 0"]
36                    
37          constantcode = """          constantcode = """
38              Enable BLEND              Enable BLEND
# Line 68  class TransparentCombinerPass: Line 68  class TransparentCombinerPass:
68          # Then, select the combiner path type.          # Then, select the combiner path type.
69          if type == 0:          if type == 0:
70              scale = nvcode.combinerscale(avg(*texscales) * 8.0 * rndscale)              scale = nvcode.combinerscale(avg(*texscales) * 8.0 * rndscale)
71              bandscale = nvcode.combinerscale(2.0 * exp(.5 * rnd.nextGaussian()))              bandscale = nvcode.combinerscale(3.0 * exp(.5 * rnd.nextGaussian()))
72    
73              # Band-like texture.              # Band-like texture.
74              #              #
# Line 159  class TransparentCombinerPass: Line 159  class TransparentCombinerPass:
159                  FCI G %(finalG)s ALPHA                  FCI G %(finalG)s ALPHA
160              """)              """)
161          else:          else:
162              scale = nvcode.combinerscale(avg(*texscales) * 4.0 * rndscale)              scale = nvcode.combinerscale(avg(*texscales) * 8.0 * rndscale)
163              alphascale = nvcode.combinerscale(avg(*texscales) * 8.0 * rndscale)              alphascale = nvcode.combinerscale(avg(*texscales) * 8.0 * rndscale)
164    
165              # Interpolate on the fraction line c0,c1,c2:              # Interpolate on the fraction line c0,c1,c2:

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26