/[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.15 by jvk, Thu Oct 3 16:12:11 2002 UTC revision 1.16 by jvk, Fri Oct 4 13:18:18 2002 UTC
# Line 51  class TransparentCombinerPass: Line 51  class TransparentCombinerPass:
51          type = rnd.nextInt(3)          type = rnd.nextInt(3)
52          # types: 0=BAND-LIKE, 1=3-COL-LERP, 2=FRACTION-LINE          # types: 0=BAND-LIKE, 1=3-COL-LERP, 2=FRACTION-LINE
53    
54            if 0:
55                if trans > 0:
56                    scale = "SCALE_BY_FOUR_NV"
57                else:
58                    scale = [ "SCALE_BY_ONE_HALF_NV",
59                              "NONE",
60                              "SCALE_BY_TWO_NV",
61                              "SCALE_BY_FOUR_NV",
62                              ][rnd.nextInt(4)]
63    
64    
65          # Then, select the combiner path type.          # Then, select the combiner path type.
66          if 0:          if 0:
# Line 144  class TransparentCombinerPass: Line 154  class TransparentCombinerPass:
154          elif type == 1:          elif type == 1:
155              #scale = "SCALE_BY_ONE_HALF_NV"              #scale = "SCALE_BY_ONE_HALF_NV"
156              #scale = "NONE"              #scale = "NONE"
157              scale = "SCALE_BY_TWO_NV"              #scale = "SCALE_BY_TWO_NV"
158              #scale = "SCALE_BY_FOUR_NV"              scale = "SCALE_BY_FOUR_NV"
159    
160              # Interpolate between three colors:              # Interpolate between three colors:
161              # d0 = t0 . r0              # d0 = t0 . r0
# Line 181  class TransparentCombinerPass: Line 191  class TransparentCombinerPass:
191                  CI1 ALPHA B SPARE0_NV SIGNED_IDENTITY_NV BLUE                  CI1 ALPHA B SPARE0_NV SIGNED_IDENTITY_NV BLUE
192                  CI1 ALPHA C SPARE1_NV SIGNED_NEGATE_NV BLUE                  CI1 ALPHA C SPARE1_NV SIGNED_NEGATE_NV BLUE
193                  CI1 ALPHA D SPARE1_NV SIGNED_IDENTITY_NV BLUE                  CI1 ALPHA D SPARE1_NV SIGNED_IDENTITY_NV BLUE
194                  CO1 ALPHA DISCARD_NV DISCARD_NV SPARE1_NV NONE NONE FALSE FALSE FALSE                  CO1 ALPHA DISCARD_NV DISCARD_NV SPARE1_NV %(scale)s NONE FALSE FALSE FALSE
195    
196                  # lerp(SPARE1, PRI_COL, FOG)                  # lerp(SPARE1, PRI_COL, FOG)
197                  FCI A SPARE1_NV UNSIGNED_INVERT_NV RGB                  FCI A SPARE1_NV UNSIGNED_INVERT_NV RGB
# Line 193  class TransparentCombinerPass: Line 203  class TransparentCombinerPass:
203              """)              """)
204          else:          else:
205              #scale = "SCALE_BY_ONE_HALF_NV"              #scale = "SCALE_BY_ONE_HALF_NV"
206              scale = "NONE"              #scale = "NONE"
207              #scale = "SCALE_BY_TWO_NV"              #scale = "SCALE_BY_TWO_NV"
208              #scale = "SCALE_BY_FOUR_NV"              scale = "SCALE_BY_FOUR_NV"
209    
210              # Interpolate on the fraction line c0,c1,c2:              # Interpolate on the fraction line c0,c1,c2:
211              # d0 = t0 . t1              # d0 = t0 . t1
# Line 241  class TransparentCombinerPass: Line 251  class TransparentCombinerPass:
251                  CI1 ALPHA B CONSTANT_COLOR0_NV EXPAND_NORMAL_NV BLUE                  CI1 ALPHA B CONSTANT_COLOR0_NV EXPAND_NORMAL_NV BLUE
252                  CI1 ALPHA C TEXTURE%(t1)s EXPAND_NORMAL_NV BLUE                  CI1 ALPHA C TEXTURE%(t1)s EXPAND_NORMAL_NV BLUE
253                  CI1 ALPHA B CONSTANT_COLOR1_NV EXPAND_NORMAL_NV BLUE                  CI1 ALPHA B CONSTANT_COLOR1_NV EXPAND_NORMAL_NV BLUE
254                  CO1 ALPHA DISCARD_NV DISCARD_NV SPARE1_NV NONE NONE FALSE FALSE FALSE                  CO1 ALPHA DISCARD_NV DISCARD_NV SPARE1_NV %(scale)s NONE FALSE FALSE FALSE
255                                    
256                  FCI G %(finalG)s ALPHA                  FCI G %(finalG)s ALPHA
257              """)              """)

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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