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

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

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

revision 1.52 by jvk, Tue Oct 15 14:37:30 2002 UTC revision 1.53 by jvk, Wed Oct 16 09:14:10 2002 UTC
# Line 27  if GL.hasExtension("GL_NV_texture_shader Line 27  if GL.hasExtension("GL_NV_texture_shader
27      # XXX Should check separately for texture_shader2,      # XXX Should check separately for texture_shader2,
28      # otherwise it'll be SLOW.      # otherwise it'll be SLOW.
29      if dbg: print "Using NV20 texture shaders"      if dbg: print "Using NV20 texture shaders"
30      from gfx.libpaper.texops_NV2X import makeNormalShaderPass      from gfx.libpaper.texops_NV2X import makeNormalShaderPass, scaleFactor
31  else:  else:
32      if dbg: print "Using unextended OpenGL texture accesses"      if dbg: print "Using unextended OpenGL texture accesses"
33      from gfx.libpaper.texops_STD import makeNormalShaderPass      from gfx.libpaper.texops_STD import makeNormalShaderPass, scaleFactor
34    
35    
36  # Check which combiners to use.  # Check which combiners to use.
# Line 114  class ThePaperMill(PaperMill): Line 114  class ThePaperMill(PaperMill):
114          # (and then the textures, too, would be protected from gc)          # (and then the textures, too, would be protected from gc)
115          colors = Colors(rng.nextInt())          colors = Colors(rng.nextInt())
116          textures = Textures(rng.nextInt())          textures = Textures(rng.nextInt())
117          rootrep = TexGenXYRepeatUnit(rng)          rootrep = TexGenXYRepeatUnit(rng, scale = 0.3 * scaleFactor)
118    
119          pap.setNPasses(len(passes))          pap.setNPasses(len(passes))
120                    

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

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