阴影
There is a tree with alpha leaf textures. The falling shadow strongly darkens the leaves "below", which is why the model itself becomes dark.
![]() | ![]() |
---|
Is there any way to avoid this blackout without affecting the rest of the shadows?
Demo and code in the same place
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个
Shadow -Material
是看不见的,但仅呈现阴影。您可以将其不透明度
设置为模仿阴影黑暗,以下是一个演示:缺点:在较旧的版本中,有一个
shadowdarkness
- property被删除。现在,您需要额外的几何形状和材料来模仿简单的属性。There is a
shadowMaterial
that is invisible but only renders shadow. You can set itsopacity
to mimic shadow darkness, here is a demonstration:Drawback: In older releases there has been a
shadowDarkness
-property that has been removed. Now you need extra geometry and material to emulate what has been a simple property.我创建了另一个方向光(比主亮度略微明亮,带有阴影),它仅在与主侧面的另一侧照亮,从而突出了阴影的位置。
这是一个愚蠢的主意,但它帮助了我。
I created another DirectionLight (slightly less bright than the main one, with a shadow) that only illuminates, on the opposite side from the main one, thereby it highlights the shaded places.
It's a stupid idea, but it helped me.