Render Custom Depth on Nanite enabled not working

Ok guys,

This is now solved in ue5-main branch (upcoming 5.2). I can now write to stencil buffers from Nanite in the CitySample demo.

Thanks to ZacD for pointing the correct commit that solves the issue.

I have ended up with git checking out a little newer commit from ue5-main branch, namely c825148dc6e0.

Had to solve super minor issues when building ue5-main at this commit and running it with CitySample, but it seems it works fine for me now.

Not fully set up stencil values for my case, but here all buildings, trees, cars, are Nanite (except humans as skeletal meshes).

2 Likes