使用AFrame和three。制作了一个简单的AFrame场景,一个相机,一个渲染器,一个聚光灯,一个平面和一个立方体。
我想让这个立方体在平面上投下阴影。
我已经使用引用cube.object3D和spotlight.object3D在立方体中设置了聚光灯下的.castShadow。
我已经使用reference plane.object3D设置了平面中的receiveShadow。
还设置了renderer.shadowMapEnabled。
但是看不到投射到平面上的任何阴影。
有什么提示吗?
非常感谢。
发布于 2017-02-28 10:49:22
自那以后,阴影已添加到A帧:https://github.com/aframevr/aframe/pull/2350
https://aframe.io/docs/master/components/light.html#configuring-shadows
<a-scene shadow>
<a-entity light="type: directional; castShadows: true"></a-entity>
<a-box shadow="cast: true; receive: true"></a-box>
</a-scene>https://stackoverflow.com/questions/42062194
复制相似问题