Search Unity

bumped vertex lit

Discussion in 'Shaders' started by rawrman2381238, Apr 27, 2009.

  1. rawrman2381238

    rawrman2381238

    Joined:
    Jan 28, 2008
    Posts:
    122
    is it possible?
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Depends on how many possible light configurations you want to support.

    If it's something specialized like "there will always be a one directional light", then yes, it's surely possible to write a single pass shader that does bump mapping.
     
  3. droolz

    droolz

    Joined:
    Apr 29, 2009
    Posts:
    34
    This is exactly how our scene is setup [lightmaps and a single directional light]. Have you got any hints / pointers as to how to force vertex lit bumped shaders?

    Cheers,

    Jules