Unity3D - 面向相反方向时停用灯光 [英] Unity3D - Light deactivated when facing opposite direction

查看:50
本文介绍了Unity3D - 面向相反方向时停用灯光的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在场景中放置了一盏灯.

I placed a light in my scene.

当我面对那盏灯时,它照亮了地面,但当我转向相反的方向时,地面上的光消失了.

It is lighting the ground when i'm facing that light but when I turn the opposite direction, the light on the ground vanishes.

我认为这可能是 Unity 的一些默认行为.

I think this might be some Unity's default behaviour.

有什么办法可以解决这个问题吗?

Is there a way I can solve this issue?

推荐答案

Unity 使用平截头体剔除来节省性能,因此它只绘制位于相机可视区域内的项目.因此,您后面的粒子不会被绘制,并且任何附着在它们上的灯也不会被绘制.

Unity uses frustum culling to save performance, so it only draws items that are within the camera's viewing area. As a result of this, the particles behind you are not drawn, and any lights attached to them aren't either.

场景关键光通常不会附加到粒子上,因此如果它们与粒子一起隐藏,通常不会有问题.

Scene-crucial lights aren't normally attached to particles, so it's normally not a concern if they're hidden along with their particles.

对于传统灯光(不附加到粒子),只要它影响相机视锥体内的物体,Unity 就应该渲染灯光.如果您使用传统灯,您应该会看到更好的效果.

For conventional lights (not attached to particles), Unity should render the light as long as it affects objects within the camera frustum. If you use a conventional light, you should see better results.

这篇关于Unity3D - 面向相反方向时停用灯光的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆