errors while drawing in immediate mode to render texture

Avatar
  • updated
  • Answered

I draw to render texture in immediate mode as shown in the sample.
I get a lot of error prints to the console similar to this one:

Screen position out of view frustum (screen pos 0.000000, 0.000000, 1000.000000) (Camera rect 0 0 384 207)
UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal

any suggestion on how to avoid this?

Reporting a bug? please specify Unity version:
2021.3.10f1
Reporting a bug? please specify Shapes version:
4.2.1
Reporting a bug? please specify Render Pipeline:
URP
Avatar
Freya Holmér creator
  • Answered

Looks like a Unity render pipeline error about drawing things out of bounds? I would double check your drawing coordinates