[osg-users] Proper way to call glClearTexImage?

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Thu Apr 16 11:36:50 PDT 2020


I have an image buffer that is written to and read by shaders every frame. 

I need to clear the image on the GPU back to a starting value as 
efficiently as possible before the shaders run.  

It seems I could use the glClearTexImage function.  

Do I need to place this in a DrawCallback or is there a more appropriate 
location for this?

Thanks,
Rob

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/5f976679-8301-4387-a4fe-907742e56192%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200416/f10558c1/attachment.html>


More information about the osg-users mailing list