Search Unity

Object not receiving illumination from point light

Discussion in 'Global Illumination' started by CamperJohn, May 24, 2019.

  1. CamperJohn

    CamperJohn

    Joined:
    Sep 20, 2018
    Posts:
    8
    I cannot figure out why the cheese is not showing/receiving any of the green light from the point light...the barrel is showing it fine....it's almost like the cheese is transparent??? green.JPG
     
  2. KEngelstoft

    KEngelstoft

    Unity Technologies

    Joined:
    Aug 13, 2013
    Posts:
    1,060
    It is likely because it is an unlit shader assigned to the cheese or the light source is baked and you didn't rebake the lighting?
     
    CamperJohn likes this.
  3. CamperJohn

    CamperJohn

    Joined:
    Sep 20, 2018
    Posts:
    8
    Thanks for the reply....I'm still very new to Unity, so, hope this isn't a dumb question, but how can I check about an 'unlit shader' ?
     
  4. uy3d

    uy3d

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    84
    Try opening the .shader file in a text editor and search for a line starting with
    Code (CSharp):
    1. #pragma surface
    If it doesn't have that, it's probably unlit.