Hey everyone, can someone go with me to voice to help fix my problem? I have a water reflection and it works perfectly when only one person and one camera are on scene; however, when the screen splits into 2 and there are two cameras reflection of water is broking and for some reason first camera of player is working as reflection for second camera and in other direction
Изображение
i just dont sure if its posible to make it in chat
#Water Reflection
1 messages · Page 1 of 1 (latest)
so you are working with reflection probes i assume
what pipeline are you using
It looks to me like the depth buffer of one camera is getting reused by the other camera.
that's why the railing of player 1 is "blocking" the water for player 2, and vice-versa
How are you doing split-screen rendering?
with rent
if (count == 1)
{
cam.rect = new Rect(0, 0, 1, 1);
}
else if (count == 2)
{
// Correct logic for two players side-by-side
cam.rect = (i == 0)
? new Rect(0, 0, 0.5f, 1) // Left side
: new Rect(0.5f, 0, 0.5f, 1); // Right side
}
i m using this, i thought it was a asset problem but now i understed that this is unity problem
URP
it is not a problem it is normal you are using 2 cams and one of them uses the reflections etc as Fen said
yea i see it, but i have no idea how to fix it
i saw that some guy in google made something with depth as Fen said
I would've expected the problem to only appear for player 2
rather than going both ways
can you show your current camera settings in the inspector?
sec
after i turned off depth settings it came good
is itgoing to like create porblems in future if i just keep it off?
sorry, i turned off pc
u see that Depth Texture -> use setting from …
and there i put off
and now it would be interesting to see the rp settings
what is rp?
render pipeline
as i understood, depth texture rendering like depth shaders like for fog and etc
I'd expect turning that off entirely to cause problems
and if 2 cameras working that depth just come over each other
it only cost shaders, but my game dont use a lit of them
so i dont think that it will be a problem