IESLight 可以在 SceneKit 中投射阴影吗?
Could IESLight casts shadows in SceneKit?
从WWDC2016 Advance SceneKit Rendering
指南中我发现SCNLight有一种新的光源——IESLight。 但是我发现它不能投射阴影。
左边是IESLight,右边是SpotLight。
我想我驳回一分!医生说
Geometries illuminated by the light cast shadows only if the value of this property is YES and the type property of the light is SCNLightTypeSpot or SCNLightTypeDirectional. The default value is NO.
所以我想为什么IESLight不能投射阴影。感谢阅读。
这取决于 ies 配置文件:如果它描述了 360° 衰减,则它被视为泛光灯并且不会投射阴影。如果角度 < 180° 则它将被视为一个点并投射阴影。
从WWDC2016 Advance SceneKit Rendering
指南中我发现SCNLight有一种新的光源——IESLight。 但是我发现它不能投射阴影。
左边是IESLight,右边是SpotLight。
我想我驳回一分!医生说
Geometries illuminated by the light cast shadows only if the value of this property is YES and the type property of the light is SCNLightTypeSpot or SCNLightTypeDirectional. The default value is NO.
所以我想为什么IESLight不能投射阴影。感谢阅读。
这取决于 ies 配置文件:如果它描述了 360° 衰减,则它被视为泛光灯并且不会投射阴影。如果角度 < 180° 则它将被视为一个点并投射阴影。