<lightscene> 元素
<lightscene> 元素是 <lightscenes> 元素的子元素。每個 <lightscene> 元素都會對包含一或多個光源 (<light> 元素) 的一個光照設定的內容進行編碼。
每個 <lightscene> 元素都已在其 <name> 元素中定義了一個具唯一性的名稱。<name> 元素可以包含一個選用預先定義的本地化光照設定名稱或一個自訂名稱。
<lightscenes> 元素沒有屬性。
<lightscene> 語法
範例:具有預先定義本地化名稱的光照設定:
<!-- Lighting setup with a predefined localized name -->
<lightscene>
<name locid="DEFlocName"/>
<light />
<light />

<light />
</lightscene>
範例:具有自訂非本地化名稱的光照設定:
<!-- Lighting setup with a custom non-localized name -->
<lightscene>
<name>Lighting Setup Name</name>
<light />
<light />

<light />
</lightscene>
<lightscene> 子元素
<name>
(混合) 指定「光照設定」(Lighting Setup) 清單中顯示的光照設定名稱。(請參閱<name> 元素。)
<light>
定義光照設定中一個光源的類型、顏色與方向。<lightscene> 元素包含一或多個 <light> 元素。(請參閱<light> 元素。)
<lightscene> 範例
此範例顯示在 <lightscene> 元素中編碼之預先定義的光照設定 DEFTwoLights
<lightscene>
<name locid="DEFTwoLights"/>
<light name="key" type="direct" relative="view">
<color ambient="#141414" diffuse="#BEBEBE" specular="#CCCCCC"/>
<direction x="-60.00" y="15.00" z="5.00"/>
</light>
<light name="fill" type="direct" relative="view">
<color ambient="#050505" diffuse="#969696" specular="#AFAFAF"/>
<direction x="10.00" y="60.00" z="0.00"/>
</light>
</lightscene>
這是否有幫助?