Vertex Lit Shader: Baked Shadows Realtime Light

Ryan Zehm

(17)
FREE
Publisher Ryan Zehm
File size 222.30kB
Number of files 5
Latest version 1
Latest release date 2017-08-30 03:58:23
First release date 2016-12-07 09:22:27
Supported Unity versions 2018.4.2 or higher
By default, using Unity’s built-in shader Mobile/VertexLit lighting works only as either baked or realtime but you cannot display a realtime light on a baked surface. This shader allows a baked surface to also receive realtime lighting.

For example, a castle scene has realistic baked shadows and a torch on the wall is burning causing light to ‘flicker’ on the surrounding area.

1. Ensure Legacy Vertex Lit rendering path is being used. This is set in the player build settings under ‘Other Settings’.

2. Assign the shader Custom/VertexDynamicLightmap to your material, OR assign the material from this project at VertexDynamicLightmap/Materials/ to your objects.

3. Bake Lighting! The surface will have a detailed lightmap and it will also display dynamic light with Vertex Lit rendering.

Top Publisher Assets