Pārlūkot izejas kodu

gui renderer dev...

leonsal 8 gadi atpakaļ
vecāks
revīzija
4696ac07b8
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      renderer/renderer.go

+ 3 - 1
renderer/renderer.go

@@ -337,7 +337,9 @@ func (r *Renderer) renderGui(icam camera.ICamera) error {
 	buildRenderList(parent, !r.screenCleared)
 
 	// If there are panels to render, disable the scissor test
-	// which could have been set by the 3D scene renderer.
+	// which could have been set by the 3D scene renderer and
+	// then clear the depth buffer, so the panels will be rendered
+	// over the 3D scene.
 	if len(r.grmats) > 0 {
 		log.Error("render list:%v", len(r.grmats))
 		r.gs.Disable(gls.SCISSOR_TEST)