我正在尝试对我的场景进行更好的渲染。所以我添加了定向光和环境光。于是阴影就产生了。这是 Result
我想知道是否有办法让阴影变得更柔和。 该模型是用 Sweet Home 创建的:http://www.sweethome3d.com/
最佳答案
在场景元素上,您可以尝试更改阴影的默认类型:
<a-scene shadow="type: pcfsoft">
https://aframe.io/docs/0.8.0/components/shadow.html#scene_properties_type
还值得尝试一下灯光本身的属性:
- Adjust the shadow camera position and frustum (shadowCameraTop, shadowCameraRight, …) of the directional light, until it envelops the scene tightly. If the frustum is too small, shadows will be missing or partially clipped. If the frustum is too large, shadows will appear coarse or pixelated
https://aframe.io/docs/0.8.0/components/light.html#adding-real-time-shadows
https://aframe.io/docs/0.8.0/components/light.html#configuring-shadows
关于html - 我们可以使用 Aframe 制作柔和的阴影吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50366126/