Immediate mode draw order transparent layering

Avatar
  • updated
  • Answered

EDIT: FIXED - it was relating to this existing issue of shapes not rendering: https://shapes.userecho.com/communities/1/topics/385-shapes-not-rendering-in-builds-investigation-megathread

Disabling GPU instancing was a temporary fix, with a clean reinstall fixing it fully. Unity 2022.2.0b14 Windows 10

Hi,

I'm using immediate mode drawing to try and render two grids, say a black Rect with lines then a smaller, white Rect on top of that representing the play space.

The ordering of Draw calls is black Rect -> white Rect -> Grid lines however I'm unable to see the white Rect at all? Both Rect's are centered at (0,0,0) if that helps. 

Eventually I want to have moving shapes on top of this (e.g. circles) however the draw call ordering is confusing me.



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

ah, glad it worked out!