<direction> 元素
<direction> 元素仅为 directspot 光源 <light> 的子元素。确定光源光锥的轴。采用以光锥顶点为原点的 XYZ 矢量坐标。
(<direction> 元素为自闭元素。不含有内容或子元素。)
<direction> 语法
<direction x="xValue" y="yValue" z="zValue" />
<direction> 属性
x y z
(浮点型) 指定沿直射或聚光灯轴方向矢量的 ±(X、Y 或 Z) 坐标。
<direction> 示例
此示例显示 XYZ 矢量坐标为 (-60, 60, -20) 的 <direction> 元素。
<direction x="-60.00" y="60.00" z="-20.00"/>
这对您有帮助吗?