Scene depth pass showing color artifcats

Welcome to the forum.

the above response sounds like chatgpt to me. it makes no sense to the actual issue.

can you show the scene how it looks? so i can infer actually what the real error is?

if you’re a beginner chances are that you’re using the wrong pixel format (rgb8/float8/float16/uint etc)

seems to me like that’s the case. you might think you are using a rbga8 when it might be just a grey32 or grey16.

if you’re sampling the scene depth that’s usually a grey value (one scalar value, from 0 to very large, (possibly a 16 or 32 bit floating point)). should not be using rgb, just one channel.

try using it like it’s done here.

if you’re new to game programming, it’s usually a good idea to do a search online too.

though in your case i assume you might not know what to look for.