Search Unity

[Help!] Static Batching seems not to work with DepthNormals Texture (Unity 2019.3.3f1)

Discussion in 'General Graphics' started by xsc14, Apr 23, 2020.

  1. xsc14

    xsc14

    Joined:
    Jan 17, 2017
    Posts:
    1
    upload_2020-4-23_16-7-24.png

    [Problem Description]
    I'm developing a scene with approximately 400 static objects, and most of them shares the same material, so in normal drawing stages, only 17 draw calls are needed, thanks to static batching.

    However, when I added an post-processing effect which requires the _CameraDepthNormalsTexture to be rendered, no static batching is applied during the _CameraDepthNormalsTexture rendering stages.

    Is there's something wrong with my configuration? or does unity not support Static Batching with shader replacement technique? Why?

    Thanks a lot!

    [Developing Environment]
    Unity 2019.3.3f1
    macOS 10.15.4 with Metal
    Forward Rendering path