Sfoglia il codice sorgente

Fix skybox render order

Daniel Salvadori 6 anni fa
parent
commit
96f598f771
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      graphic/skybox.go

+ 2 - 2
graphic/skybox.go

@@ -61,8 +61,8 @@ func NewSkybox(data SkyboxData) (*Skybox, error) {
 	skybox.uniMVPm.Init("MVP")
 	skybox.uniNm.Init("NormalMatrix")
 
-	// The skybox should always be rendered first
-	skybox.SetRenderOrder(-100)
+	// The skybox should always be rendered last among the opaque objects
+	skybox.SetRenderOrder(100)
 
 	return skybox, nil
 }