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