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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user