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

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

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

revision 1.18 by jvk, Fri Oct 25 08:28:05 2002 UTC revision 1.19 by jvk, Fri Oct 25 08:48:12 2002 UTC
# Line 71  def init(profile): Line 71  def init(profile):
71    
72          tex_scale = 1          tex_scale = 1
73          tex_bias = 0          tex_bias = 0
74          tex_format = "RGBA"          tex_format = [ 4, "RGBA", "RGBA" ]
75                    
76      elif profile == "DOT3":      elif profile == "DOT3":
77          print "Using 1/4 displacement resolution textures with GL_EXT_texture_env_dot3"          print "Using 1/4 displacement resolution textures with GL_EXT_texture_env_dot3"
# Line 95  def init(profile): Line 95  def init(profile):
95    
96          tex_scale = .25          tex_scale = .25
97          tex_bias = .75          tex_bias = .75
98          tex_format = "RGBA"          tex_format = [ 4, "RGBA", "RGBA" ]
99    
100      elif profile == "STD":      elif profile == "STD":
101          print "Using full displacement resolution texture with standard GL"          print "Using full displacement resolution texture with standard GL"
# Line 113  def init(profile): Line 113  def init(profile):
113                    
114          tex_scale = 1          tex_scale = 1
115          tex_bias = 0          tex_bias = 0
116          tex_format = "INTENSITY"          tex_format = [ 1, "INTENSITY", "LUMINANCE" ]
117      else:      else:
118          assert(0)          assert(0)
119    
# Line 122  def init(profile): Line 122  def init(profile):
122              "scale", str(tex_scale), "bias", str(tex_bias), "eps", ".125"]              "scale", str(tex_scale), "bias", str(tex_bias), "eps", ".125"]
123    
124    
125      tex = getCachedTexture([size, size, 0, 4, tex_format, "RGBA", "irregu",      tex = getCachedTexture([size, size, 0] + tex_format +
126                              args], shade_all_levels = 1)                             ["irregu",  args], shade_all_levels = 1)
127      texinv = getCachedTexture([size, size, 0, 4, tex_format, "RGBA", "irregu",      texinv = getCachedTexture([size, size, 0] + tex_format +
128                                 args + ["invert", "1"]],                                ["irregu", args + ["invert", "1"]],
129                                shade_all_levels = 1)                                shade_all_levels = 1)
130    
131    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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