Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Spotlight with an opaque colour

Discussion in 'Global Illumination' started by modegames, Jul 21, 2015.

  1. modegames

    modegames

    Joined:
    Dec 1, 2014
    Posts:
    37
    Hi simple question which I can't seem to figure out.

    Is it possible to override the way that a single light casts color onto the surface of a mesh so its possible to cast an opaque colour with a spotlight onto an object.
     
  2. modegames

    modegames

    Joined:
    Dec 1, 2014
    Posts:
    37
    I will answer my own question here in case others follow this thread. Use a light projector using one of the light projector shaders provided by Unity, with this shader use a texture as a cookie for this shaders texture input