#Scissor rect is being distorted by change in projection matrices

1 messages · Page 1 of 1 (latest)

elfin iris
#

So I'm calling:

cmd.EnableScissorRect(new Rect(rect.x, rect.y, rect.width, rect.height));
                
cmd.SetViewProjectionMatrices(mirror.viewMatrix, mirror.projMatrix);```

But the created scissor rect changes its size depending on SetViewProjectionMatrices. It doesn't matter if I call it after or before the method.
Does anyone know how I can avoid this?
Thanks in advance!
Im in Unity 6 URP using rendergraph api