Export back face culling flag, textures, and transparency flag.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4052 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2006-04-24 22:07:47 +00:00
parent a4c7ecb5e3
commit 2f1a10c911
3 changed files with 30 additions and 6 deletions
+9
View File
@@ -123,6 +123,15 @@ macroScript TRModelExporter category:"File" \
outFile
writePoint3Attr " scale" xform.scalePart outFile
if isMesh then (
format " solid=\"%\"" node.backFaceCull to:outFile
if node.material != undefined and
isKindOf node.material.diffuseMap BitmapTexture do (
format " texture=\"%\"" (filenameFromPath \
node.material.diffuseMap.filename) to:outFile
format " transparent=\"%\"" \
(node.material.diffuseMap.bitmap.hasAlpha or \
node.material.opacityMap != undefined) to:outFile
)
format ">\n" to:outFile
if isProperty node #skin do (
setCommandPanelTaskMode mode:#modify