Website powered by

Procedurally Lit Foliage Shader

I created a shader to be used with foliage in VR and other less powerful platforms. Instead of relying on dynamic lighting or large baked lightmaps, I used a helper python script in Maya to map vertex color to geometry and use the result to procedurally calculate directional and depth lighting. The shader also has wind noise and subtle movement taking into account the plant's distance from the ground.

All of the foliage models were created by other artists on the team.

Result of vertex color script to help map lighting

Result of vertex color script to help map lighting

Screenshot of Unity shadergraph

Screenshot of Unity shadergraph