I'm using bpy.types.SpaceView3D.draw_handler_add
and the gpu
/bgl
/blf
library to draw some labels in the 3D view. The handler is created like this:
self._handle = bpy.types.SpaceView3D.draw_handler_add(self.draw_callback,
(context,),
'WINDOW',
'POST_PIXEL')
This draws everything fine when in Solid, Wireframe or LookDev shading mode, but shows nothing when in Rendered shading mode - for both Cycles and Eevee.
Is it possible to draw on top of the rendered shading mode in python? Maybe using the new Overlays system?