SunFlow場(chǎng)景文件的Instances代碼塊摘要
實(shí)例:一個(gè)object網(wǎng)格定義對(duì)應(yīng)的多個(gè)對(duì)象 ,有效減少內(nèi)存消耗,場(chǎng)景文件的尺寸,修改網(wǎng)格定義將影響所有實(shí)例。可以針對(duì)實(shí)例修改其位置、旋轉(zhuǎn)、比例、陰影或者修改器,如下:
instance {
name nameOfInstance
geometry theOriginalObjectName
transform {
rotatex -90
scaleu 1.0
translate -1.0 3.0 -1.0
}
shader shaderForInstance
modifier modForInstance /* 可選 */
}
posted on 2009-02-13 05:27 濤仔28 閱讀(292) 評(píng)論(0) 收藏 舉報(bào)
浙公網(wǎng)安備 33010602011771號(hào)