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. |
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 |
|
|