How can I make shadows that have sharp edges and not blurry?
I'd like to add that that the issue shown in the last image can be made better by selecting the directional light, going to the Cascaded Shadow Map section and reducing the dynamic shadow distance moveable, and setting your directional light to be movable. You can play with things like the number of cascades and the distribution. This is only for if you need dynamic shadows; static shadows will be much easier to get a nicer result from.
The basic reason for the poor shadow contact in that image, is that the light is trying to project a shadow for an area MUCH bigger than your small play space, and there is not much shadow resolution being designated for that little area. Tweaking those settings allows you to tailor the shadows for a certain scene.
For what it is worth, thin tent straps like that will pretty much always be a challenge to get nice shadows dynamically.
answered Jun 04 '14 at 05:48 PM
Hi Ivailo Korakov,
I'm not too sure exactly where to start with the way your question is phrased since it doesn't give a whole lot of detail about what you're attempting to do other than have nice shadows. I'm really not sure if you want a nice crisp hard edge shadow and cannot get that or if you want a blurred edge shadow? If I'm wrong with my information let me know and I'll see if I can appropriately answer.
A lot of the shadow quality will depend on how you're using meshes within your scene.
If you are using Static meshes' you will need to have a 2nd UV channel for your Lightmap shadow information to be baked into. All shadows with static meshes will be pre-computed.
If you are using movable objects you will not need a lightmap and all shadow will be dynamically generated from the light source.
I've attached an image of a cane with the image on the left being Static with a lightmap and the image on the right being Movable not using a lightmap.
I've not done anything using default setting. I did play a Skylight within the scene to make the shadows not appear so dark.
The Movable objects shadow on the right you can see it has the fuzziness around the edge and the static has a much more crisp hard edged shadow.
If you can clarify if this is what you were asking or if there is a specific issue I can help you resolve I'd be glad to help!
answered Jun 03 '14 at 04:06 PM
Tim Hobson ♦♦ STAFF
Maybe this has already been said, but have you tried reducing the distance on your cascaded shadows? Higher resolution will help!
answered Mar 08 '19 at 04:32 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here