<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>
这对您有帮助吗?