3D
Layer 3D
Section titled “Layer 3D”thisLayer
这些属性与图层的 3D 属性相关。
在本页中,我们将使用 thisLayer
作为调用这些项的示例,但请注意,任何返回 Layer 的方法都可以使用。
Layer.acceptsLights
Section titled “Layer.acceptsLights”thisLayer.acceptsLights
如果图层接受灯光,则返回 1
。
布尔值数字
Layer.acceptsShadows
Section titled “Layer.acceptsShadows”thisLayer.acceptsShadows
如果图层接受阴影,则返回 1
;如果属性设置为 仅接受阴影
,则返回 2
。
数字
Layer.ambient
Section titled “Layer.ambient”thisLayer.ambient
以百分比形式返回环境光分量值。
数字
Layer.castsShadows
Section titled “Layer.castsShadows”thisLayer.castsShadows
如果图层投射阴影,则返回 1.0
;如果属性设置为 仅投射阴影
,则返回 2
。
数字
Layer.diffuse
Section titled “Layer.diffuse”thisLayer.diffuse
以百分比形式返回漫反射分量值。
数字
Layer.lightTransmission
Section titled “Layer.lightTransmission”thisLayer.lightTransmission
返回 3D 图层的光传输属性值。
数字
Layer.metal
Section titled “Layer.metal”thisLayer.metal
以百分比形式返回金属分量值。
数字
Layer.orientation
Section titled “Layer.orientation”thisLayer.orientation
返回 3D 图层的 3D 方向值,单位为度。
数组(3 维)
Layer.rotationX
Section titled “Layer.rotationX”thisLayer.rotationX
返回 3D 图层的 x 轴旋转值,单位为度。
数字
Layer.rotationY
Section titled “Layer.rotationY”thisLayer.rotationY
返回 3D 图层的 y 轴旋转值,单位为度。
数字
Layer.rotationZ
Section titled “Layer.rotationZ”thisLayer.rotationZ
返回 3D 图层的 z 轴旋转值,单位为度。
数字
Layer.shininess
Section titled “Layer.shininess”thisLayer.shininess
以百分比形式返回光泽度分量值。
数字
Layer.specular
Section titled “Layer.specular”thisLayer.specular
以百分比形式返回镜面反射分量值。
数字