Forráskód Böngészése

Cubemap texture also needs 6 layers input

Josip Miskovic 2 éve
szülő
commit
92a08c12e9
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      examples/Effects/Cubemap_Generate/main.lua

+ 1 - 1
examples/Effects/Cubemap_Generate/main.lua

@@ -95,7 +95,7 @@ local unitZ = lovr.math.newVec3(0,0,1)
 function cubemap.load()
 	-- Create cubemap textures
 	local cubemapWidth, cubemapHeight = 256, 256
-	cubemap.texture = lovr.graphics.newTexture(cubemapWidth, cubemapHeight, { type = "cube", mipmaps = false })
+	cubemap.texture = lovr.graphics.newTexture(cubemapWidth, cubemapHeight, 6, { type = "cube", mipmaps = false })
 	cubemap.faces = {}
 
 	-- Precalculate cubemap View-Projection matrices