Explorar o código

Fix skybox render order

Daniel Salvadori %!s(int64=6) %!d(string=hai) anos
pai
achega
96f598f771
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
 }