Clear stencil buffer every frame+Depth buffer viz

This commit is contained in:
bloeys
2022-10-14 04:34:40 +04:00
parent 3071b52c85
commit 7a25aea6ba
5 changed files with 86 additions and 19 deletions

View File

@ -43,7 +43,7 @@ func Run(g Game, w *Window, ui nmageimgui.ImguiInfo) {
g.Update()
gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT)
gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT)
g.Render()
ui.Render(float32(width), float32(height), fbWidth, fbHeight)
w.SDLWin.GLSwap()