def export_texture(self, tex_node, usage='RGB', *, invert_green=False):
image = tex_node.image
from .datafile import Resource, Statement, Token
- tex_res = Resource(image.name+".tex2d", "texture2d")
+ tex_res = Resource(image.name+".tex", "texture")
+
+ tex_res.statements.append(Statement("type", Token("\\2d")))
if tex_node.use_mipmap:
tex_res.statements.append(Statement("generate_mipmap", True))