Search Unity

Sampling the *actual* shadow-map

Discussion in 'Shaders' started by maxest, May 28, 2013.

  1. maxest

    maxest

    Joined:
    May 2, 2012
    Posts:
    60
    Hey guys,

    I want to do volumetric lights (based on this paper http://developer.download.nvidia.com/SDK/10.5/direct3d/Source/VolumeLight/doc/VolumeLight.pdf) but in order to do so I need to sample the actual shadow map. I know that I can sample the *result* texture of sunlight shadows but that won't help me here. I need access to the actual shadow map generated by Unity in order to check whether my sampled "volume pixels" are in shadow or not. Is there a way to do this?