gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/libpaper papermill.py textures.py


From: Janne V. Kujala
Subject: [Gzz-commits] gzz/gfx/libpaper papermill.py textures.py
Date: Tue, 15 Oct 2002 10:37:30 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        02/10/15 10:37:30

Modified files:
        gfx/libpaper   : papermill.py textures.py 

Log message:
        Add a kluge to get the old NV1X textures

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libpaper/papermill.py.diff?tr1=1.51&tr2=1.52&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libpaper/textures.py.diff?tr1=1.29&tr2=1.30&r1=text&r2=text

Patches:
Index: gzz/gfx/libpaper/papermill.py
diff -c gzz/gfx/libpaper/papermill.py:1.51 gzz/gfx/libpaper/papermill.py:1.52
*** gzz/gfx/libpaper/papermill.py:1.51  Tue Oct 15 09:52:04 2002
--- gzz/gfx/libpaper/papermill.py       Tue Oct 15 10:37:30 2002
***************
*** 186,195 ****
                  DepthMask 0
              """
                  
!         code += (
!             sh.setupCode(rnd) + 
!             comb.setupCode(sh.getRGBoutputs(), sh.getRGBoutputscales(), 
colors, rnd, trans)
!         )
  
          ppass.setSetupcode(code)
          if dbg: print "SETUP: ", code
--- 186,194 ----
                  DepthMask 0
              """
                  
!         code += sh.setupCode(rnd)
!         code += comb.setupCode(sh.getRGBoutputs(), sh.getRGBoutputscales(),
!                                colors, rnd, trans)
  
          ppass.setSetupcode(code)
          if dbg: print "SETUP: ", code
Index: gzz/gfx/libpaper/textures.py
diff -c gzz/gfx/libpaper/textures.py:1.29 gzz/gfx/libpaper/textures.py:1.30
*** gzz/gfx/libpaper/textures.py:1.29   Tue Oct 15 09:52:04 2002
--- gzz/gfx/libpaper/textures.py        Tue Oct 15 10:37:30 2002
***************
*** 189,196 ****
          hyper = rnd.nextGaussian()*5
  
          self.probs = {}
!         
!         for type in ptextures.keys():
              self.probs[type] = []
              sum = 0
  
--- 189,196 ----
          hyper = rnd.nextGaussian()*5
  
          self.probs = {}
! 
!         for type in ["RGB2"] + filter(lambda key: key != "RGB2", 
ptextures.keys()):
              self.probs[type] = []
              sum = 0
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]