Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Baking Shadowmaps

Discussion in 'General Graphics' started by LightStriker, Feb 26, 2018.

  1. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,717
    My goal is for my shadow caster lights to NOT do any draw call for static objects.

    I want to find a way to bake into a texture the shadowmap of a light in the editor for all the static object. Which means I would only need to perform draw call for the dynamic object. Sounds really simple...

    The new lightning modes doesn't appear to be doing that, as all mode perform draw calls on static object to cast shadows.

    I somehow assumed it could be possible with the CommandBuffers... but I haven't found out how. Anybody got a clue?
     
  2. MrMetwurst2

    MrMetwurst2

    Joined:
    Jul 16, 2009
    Posts:
    253
    Bump this.
    I too want to create a shadowmap only, no lighting needed.
    I am using LWRP which may be limiting my options some?
    This seems like it should be an easy task though. Why can't I work it out!