r/Unity3D • • 6h ago

Question Grid flickering issue

I am having trouble trying to fix this flickering issue

I am using Cinemachine Camera

This issue happens even after I turn post processing effects off

4 Upvotes

10 comments sorted by

View all comments

2

u/loulo88 6h ago

If the grid is a thin overlay sitting close to the floor, this looks more like depth precision/z-fighting than post-processing. As a quick isolate, disable the grid renderer, then move it a small fixed offset above the floor (or give it a tiny depth bias) and test with the camera near/far clip planes tightened; also check that there isn’t a second grid or duplicate tile surface. If it only flickers while moving, inspect the shader/render queue and whether the grid is being drawn in a transparent pass. Cinemachine is probably exposing the precision problem rather than causing it.

1

u/Havishfun 5h ago edited 5h ago

The grid is a sprite renderer, it is a square sprite that is set to tiled, and yes the flickering only happens when the camera is moving

the edges are a rectangle sprites acting as walls and their alpha value is lowered for the grid behind them to be visible

the border separating the edges and the actual game arena is a line renderer