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 |
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 |
# |
# |
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: |