The problem of model flickering occurs after unity packages the web package.

Original link: The problem of model flashing after unity packages the web package_Unity webgl model flashing_A collected blog-CSDN blog

1. First check whether the flash surface is caused by model overlap. If this is the case, then let the models be slightly separated. 2. Adjust the
unity settings Edit→Project Settings→anti aliasing to 4X or larger.


3. It may be a problem with camera rendering, so you can modify the near value of the camera's clipping planes until it does not flicker.

If it flickers in the distance or cannot be seen: You can try to modify the Far value. 


4. Find the flickering object, find the sub-object inside, and change Lighting→cas shadows to shadows only or two sided (shadows only may make your object disappear, it is recommended to use two sided)


Note: Everyone's problems are different and can be investigated and solved one by one.

Since model overlap is unavoidable, I tried using method 2 and method 3 respectively. Both worked. Method 3 is more suitable for my situation, so I adjusted the clipping planes of the camera and successfully solved it.

Guess you like

Origin blog.csdn.net/qq_37524903/article/details/132696276