html - 我们可以使用 Aframe 制作柔和的阴影吗?

标签 html render shadow aframe

我正在尝试对我的场景进行更好的渲染。所以我添加了定向光和环境光。于是阴影就产生了。这是 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

还值得尝试一下灯光本身的属性:

  1. 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/

相关文章:

cocoa - NSButton 去除文本阴影

python - 使用 PyEphem 计算影子长度

html - 以线性渐变作为后备的锥形渐变

html - CSS:右对齐垂直旋转的文本

html - 我如何在菜单下拉列表中实现此输出

c# - 哪种 3D 渲染技术/算法最有效地按边绘制光束?

javascript - 使用 Javascript 更改链接颜色

android - Android 浏览器/GUI(古吉拉特语)上的印度语呈现不当

css - 呈现 dijit 小部件的最快方法

three.js - 三个JS : objects don't cast shadow on others