/[gzz]/gzz/gfx/demo/texturelab.py
ViewVC logotype

Diff of /gzz/gfx/demo/texturelab.py

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

revision 1.10 by tjl, Thu Sep 5 11:19:32 2002 UTC revision 1.11 by tjl, Thu Sep 5 11:54:50 2002 UTC
# Line 11  def js(list): Line 11  def js(list):
11  lpars = [  lpars = [
12      "spec_low", "0.95",      "spec_low", "0.95",
13      "spec_high", "1.0",      "spec_high", "1.0",
14      "shadowlen", "0.1",      "shadowlen", "0.9",
15      "lx", "-0.5",      "lx", "-0.5",
16      "ly", "0.4",      "ly", "0.4",
17      "npredger", "0.1",      "npredger", "0.1",
18        "noisefreqangle", "10",
19        "noisefreqr", "20",
20        "noisescale", ".5",
21        "xnoisescale", ".7",
22  ]  ]
23    
24    AbstractUpdateManager.defaultAnimationTime = 10000
25    
26  scal = 1024  scal = 1024
27  t = {  t = {
28   "tfamb": ( scal, scal, 0, 2, "LUMINANCE_ALPHA", "LUMINANCE_ALPHA",   "tfamb": ( scal, scal, 0, 2, "LUMINANCE_ALPHA", "LUMINANCE_ALPHA",
# Line 39  def shadedquad(tex): Line 45  def shadedquad(tex):
45      return getDList("""      return getDList("""
46                  BindTexture TEXTURE_2D %(tex)s                  BindTexture TEXTURE_2D %(tex)s
47                  TexParameter TEXTURE_2D TEXTURE_MAG_FILTER LINEAR                  TexParameter TEXTURE_2D TEXTURE_MAG_FILTER LINEAR
48                    TexParameter TEXTURE_2D TEXTURE_MIN_FILTER LINEAR_MIPMAP_LINEAR
49                  Enable TEXTURE_2D                  Enable TEXTURE_2D
50                  Begin QUAD_STRIP                  Begin QUAD_STRIP
51                      TexCoord 1.1 1.1 0                      TexCoord 1.1 1.1 0

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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