跳转到内容

3D

thisLayer

这些属性与图层的 3D 属性相关。

在本页中,我们将使用 thisLayer 作为调用这些项的示例,但请注意,任何返回 Layer 的方法都可以使用。


thisLayer.acceptsLights

如果图层接受灯光,则返回 1

布尔值数字


thisLayer.acceptsShadows

如果图层接受阴影,则返回 1;如果属性设置为 仅接受阴影,则返回 2

数字


thisLayer.ambient

以百分比形式返回环境光分量值。

数字


thisLayer.castsShadows

如果图层投射阴影,则返回 1.0;如果属性设置为 仅投射阴影,则返回 2

数字


thisLayer.diffuse

以百分比形式返回漫反射分量值。

数字


thisLayer.lightTransmission

返回 3D 图层的光传输属性值。

数字


thisLayer.metal

以百分比形式返回金属分量值。

数字


thisLayer.orientation

返回 3D 图层的 3D 方向值,单位为度。

数组(3 维)


thisLayer.rotationX

返回 3D 图层的 x 轴旋转值,单位为度。

数字


thisLayer.rotationY

返回 3D 图层的 y 轴旋转值,单位为度。

数字


thisLayer.rotationZ

返回 3D 图层的 z 轴旋转值,单位为度。

数字


thisLayer.shininess

以百分比形式返回光泽度分量值。

数字


thisLayer.specular

以百分比形式返回镜面反射分量值。

数字