Textures are all flat with no shading or lighting!

Sorry for what is likely a stupid question, I wasn’t allowed to post this in Getting Started for whatever reason :frowning: (Beginner tag not allowed in Getting Started for some reason? and did not tell me how to resolve this issue either!)

Anyway, I am trying to create just a basic 3d scene view before I get started on my other game logic, but the objects are completely flat-coloured and have no lighting or shading at all (and I have tried adding lights to the scene). I assuming it is because I am using the Small Scale Competitive Multiplayer template which has some project settings which don’t cooperate, but I’m not sure what exactly I need to change. Usually my google skills help me find similar issues online but no dice for me. I’ve also noticed my main camera object doesn’t have the field for background colour or ‘clear flags’ like it normally does in my other projects.

What my project looks like:

I would embed a second media image as reference, but I’m not allowed as a new user. My other project which I’ve made and aim to remake is pretty much the same as the Unity Roll-A-Ball tutorial.

Could you show what your hierarchy looks like? I think you might be in the prefab edit mode, which can usually be exited with an arrow in the hierarchy

Sorry for the delay. Here is what my hierarchy looks like

image

Do you have lighting turned off in the scene view?

Namely the lightbulb icon in view modes overlay.

Trying either state of the lightbulb icon doesn’t seem to change anything. :frowning:

According to your hierarchy, you don’t have any lights in your scene. Add a directional light.

1 Like

As per the original post, I’ve tried adding lights to no avail.

If it helps;

Even in other projects, if you remove the directional light you can still discern the different sides of 3D objects (albeit very faintly). All the sides have the exact same lighting and colour in my project! :sweat_smile:

Some more silly ideas that probably won’t help :slightly_smiling_face::

Does the object have an unlit material maybe?

Is it a URP shader in a non-URP project or vice-versa?

Is it baked lighting? i.e. is the object static and there’s baked lighting data in the scene? Try cleaning the GI cache in “edit->preferences->GI Cache”

Are you using HDRP or some kind of HDR rendering with an “exposure” setting that’s crushing your light to zero?

Are you using URP? If so … did you set up the project as a 2D one?

If you did … then the renderer will be set up to only work in 2D. You can fix this by creating a new URP Asset (Assets/Create/Rendering/URP Asset (with universal renderer)) … then assign that new asset in place of the 2D one in your UniversalRP asset. Can just delete the 2D one afterwards.

3 Likes