Search Unity

Pre-Z pass cause flicking on IOS

Discussion in 'General Graphics' started by zhutianlun810, Jul 28, 2020.

  1. zhutianlun810

    zhutianlun810

    Joined:
    Sep 17, 2017
    Posts:
    168
    Hello,

    Currently I am doing some optimization for forest scene in my game. I add a Pre-Z pass to enhance the performance. However, I find that it seems that the vertex Pos output in pre-Z pass and the vertex Pos in actual render pass are not same, causing some ugly flickering on my foliage. This phenomenon is only appeared on IOS plarform. I feel there must be some automatic optimization in the shadering compling stage cause the problem.

    Anyone has the same issue?