20 |
# |
# |
21 |
# |
# |
22 |
|
|
23 |
|
dbg = 0 |
24 |
|
|
25 |
import java |
import java |
26 |
|
|
27 |
import vob |
import vob |
162 |
key = str(args) |
key = str(args) |
163 |
if not textures.has_key(key): |
if not textures.has_key(key): |
164 |
textures[key] = GL.createTexture() |
textures[key] = GL.createTexture() |
165 |
print "Generating texture: ", args |
if dbg: |
166 |
|
print "Generating texture: ", args |
167 |
res = textures[key].shade(*args) |
res = textures[key].shade(*args) |
168 |
print "SHADER: ", res |
if dbg: |
169 |
|
print "SHADER: ", res |
170 |
return textures[key] |
return textures[key] |
171 |
|
|
172 |
|
|