Explorar el Código

Fix skybox render order

Daniel Salvadori hace 6 años
padre
commit
96f598f771
Se han modificado 1 ficheros con 2 adiciones y 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
 }