13 |
# texture type |
# texture type |
14 |
# DOT2: 2D dot-product -suitable |
# DOT2: 2D dot-product -suitable |
15 |
# RGB2: 2D RGB |
# RGB2: 2D RGB |
16 |
|
# DSDT: 2D DSDT offset texture |
17 |
|
|
18 |
shaderTypes = [ |
shaderTypes = [ |
19 |
[ |
[ |
40 |
("T2", "RGB2"), |
("T2", "RGB2"), |
41 |
("T2", "RGB2"), |
("T2", "RGB2"), |
42 |
], |
], |
43 |
|
[ ("T2", "DSDT"), |
44 |
|
("O", "FOOBAR") |
45 |
|
] |
46 |
] |
] |
47 |
|
|
48 |
# XXX: kluge: odd and even units are for "-eps" and "+eps" |
# XXX: kluge: odd and even units are for "-eps" and "+eps" |
131 |
the register combiners. |
the register combiners. |
132 |
""" |
""" |
133 |
return [i for i in range(0,len(self.st)) |
return [i for i in range(0,len(self.st)) |
134 |
if self.st[i][1] in ("RGB2", "RGB3")] |
if self.st[i][1] in ("RGB2", "RGB3", "FOOBAR")] |
135 |
|
|
136 |
def getRGBoutputscales(self): |
def getRGBoutputscales(self): |
137 |
return [self.tex[i].scale for i in self.getRGBoutputs()] |
return [self.tex[i].scale for i in self.getRGBoutputs()] |
138 |
|
|
139 |
def makeNormalShaderPass(maxaniso = None): |
def makeNormalShaderPass(maxaniso = None): |
140 |
# XXX: TODO: implement maxaniso as in texops_STD |
# XXX: TODO: implement maxaniso as in texops_STD |
141 |
return ShaderPass(shaderTypes[3]) |
#return ShaderPass(shaderTypes[3]) |
142 |
|
return ShaderPass(shaderTypes[4]) |