Search Unity

Taking lightmap value from floor?

Discussion in 'Shaders' started by HolBol, Sep 16, 2014.

  1. HolBol

    HolBol

    Joined:
    Feb 9, 2010
    Posts:
    2,887
    I've been investigating the techniques Bungie's Halo 3 used to fake certain effects. I found out that none of the shadows from the terrain or static geometry are real-time shadows, and that the objects within those shadows being 'shadowed' are actually just being darkened based on the light of what they are standing on. I'm wondering how I'd write a shader that samples the lightness of what they are standing on? Or would it be better to use a script instead?