if self.single_file:
ss.sub.append(tech_res.create_embed_statement("texture2d", tex_res))
elif not diffuse_tex.default_filter:
- ss.sub.append(tech_res.create_reference_statement("texture2d", tex_res))
+ ss.sub.append(tech_res.create_reference_statement("texture", tex_res))
else:
ss.sub.append(Statement("texture", image_name(diffuse_tex.image)))
st.sub.append(ss)
keywords = { ".mat": "material",
".mesh": "mesh",
".object": "object",
- ".tech": "technique" }
+ ".tech": "technique",
+ ".tex2d": "texture2d" }
with open(os.path.join(path, base+"_resources.mdc"), "w") as res_out:
for r in refs:
st = Statement(keywords[os.path.splitext(r.name)[1]], r.name)
if not self.inline_data:
from .util import image_name
- tex_res.statements.append(Statement("image_data", image_name(texture.image)))
+ tex_res.statements.append(Statement("external_image", image_name(texture.image)))
else:
texdata = ""
if texture.use_alpha: