TheOverfloater / pathos-public

Public release of Pathos Engine
MIT License
42 stars 10 forks source link

Suggestion: a global depth buffer of scene #23

Closed valina354 closed 4 months ago

valina354 commented 5 months ago

a global depth buffer of scene that has both bsp and vbm stuff would be nice for shaders, i have tried to do it myself using this but for no explainable reason after few sec ingame it crashes my entire gpu and with out its fine im not really sure why, i placed to init it in drawfinal image

TheOverfloater commented 5 months ago

Because Pathos uses Framebuffer Objects for rendering sub-passes, this is only viable for drawing the main screen, and it might explain the crash you are experiencing. Also it depends really on what you want to use it for, because just adding it on it's own without a concrete use case would be eating up VRAM needlessly.

valina354 commented 5 months ago

im pretty much trying to make like depth of field,ssao shaders and other stuff and they all require depth buffer pretty much