Search Unity

Spotlight not working as expected

Discussion in 'Global Illumination' started by electro_unity, Dec 13, 2018.

  1. electro_unity

    electro_unity

    Joined:
    Nov 29, 2015
    Posts:
    64
    Why spotlight does not work the same way with a cube (img1) and with an imported obj (img2)? Thanks.
     

    Attached Files:

    • img1.PNG
      img1.PNG
      File size:
      94.8 KB
      Views:
      621
    • img2.PNG
      img2.PNG
      File size:
      129.6 KB
      Views:
      629
  2. kristijonas_unity

    kristijonas_unity

    Unity Technologies

    Joined:
    Feb 8, 2018
    Posts:
    1,080
    If you are using baked lighting in your scene, the issue is most likely related to the lightmap UVs of the imported object. You can either author your UVs by hand in a 3D modeling package, or let Unity generate auto UVs for you.To do that, simply select your mesh, and in the mesh importer settings enable Generate Lightmap UVs checkbox.