简体   繁体   English

游戏视图中没有阴影 - 场景视图中的阴影

[英]No Shadows In Game View - Shadows in Scene View

I am having issues with shadows and lighting.我有阴影和照明问题。

In Scene View this is what I see when I zoom close to the level layout:在场景视图中,这是我放大接近关卡布局时看到的:

在此处输入图片说明

But when I am in Game View this is what I see:但是当我在游戏视图中时,这就是我所看到的:

在此处输入图片说明

And these are my camera settings:这些是我的相机设置:

在此处输入图片说明

How can I increase my shadow view so that the camera can see the shadows without being so close to the level?如何增加我的阴影视图,以便相机可以看到阴影而不会太接近水平? I am aiming for a top down sort of game and I don't want the camera being so zoomed in or close to the level.我的目标是自上而下的游戏,我不希望相机如此放大或接近水平。 Am I missing something in my settings?我在我的设置中遗漏了什么吗?

1 .Make sure there is a light in the scene. 1 .确保场景中有灯光 Directional Light is fine.定向光很好。

2 .Make sure that your GameObject has " Cast Shadows " and " Receive Shadows " checked. 2 .确保您的游戏对象已选中“投射阴影”和“接收阴影”。

3 .Go to Edit > Project Settings > Quality .Increase the Shadow Distance . 3.转到编辑>项目设置>质量。增加阴影距离 This setting depends on the scale of your Scene/3D model.此设置取决于场景/3D 模型的比例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM