I currently have a directional light pointing at an angle to 2 different types of instantiated object. But for some reason, there only 1 object ios able to create a shadow while the other one can not.
I do have soft light enabled in the light object. I dont do anything special to the instantiated object vis script. Both of the objects have cast shadows & receive shadows on their Mesh Renderer component.
I dont have any Tags or Layers assigned to any of the 2 objects, and for the light I have everything to be culled (culling mask)
Any help will be appreciated!
Edit: Just an idea, I realized that the 2 objcets that I am instantiating comes from 2 different asset folder that I have downloaded from the asset stores. Is it possible that one model supports shadows and the other one does not?
I’m using the default ‘diffuse’ shaders for both of the objects (Not sure, but I found this information on the Inspetor tab when I clicked on the 2 prefabs that I am instantiating.)
Edit: I’m not sure how to figure out whether or not the shader is an unlit shader. Mind helping me out?
Bumb. Having the same problem. If I drag the prefab onto the scene, the shadows are fine, but when I instance it, shadows give up on working.
Left: dragged in prefab. Right: instanced prefab.