Selaa lähdekoodia

Tweaked a bit lightmap example.

alteredq 13 vuotta sitten
vanhempi
commit
05629f063c
1 muutettua tiedostoa jossa 10 lisäystä ja 2 poistoa
  1. 10 2
      examples/obj/lightmap/lightmap.js

+ 10 - 2
examples/obj/lightmap/lightmap.js

@@ -29,6 +29,10 @@
 	"mapLight" : "lightmap-ao-shadow.png",
 	"mapBump" : "stone.jpg",
 	"mapSpecular" : "stone.jpg",
+	"mapBumpRepeat" : [2, 2],
+	"mapSpecularRepeat" : [2, 2],
+	"mapBumpWrap" : ["repeat", "repeat"],
+	"mapSpecularWrap" : ["repeat", "repeat"],
 	"shading" : "Phong",
 	"specularCoef" : 50,
 	"transparency" : 1.0,
@@ -49,8 +53,8 @@
 	"mapLight" : "lightmap-ao-shadow.png",
 	"mapBump" : "stone.jpg",
 	"mapSpecular" : "stone.jpg",
-	"mapBumpRepeat" : [8, 8],
-	"mapSpecularRepeat" : [8, 8],
+	"mapBumpRepeat" : [16, 16],
+	"mapSpecularRepeat" : [16, 16],
 	"mapBumpWrap" : ["repeat", "repeat"],
 	"mapSpecularWrap" : ["repeat", "repeat"],
 	"shading" : "Phong",
@@ -73,6 +77,10 @@
 	"mapLight" : "lightmap-ao-shadow.png",
 	"mapBump" : "rocks.jpg",
 	"mapSpecular" : "rocks.jpg",
+	"mapBumpRepeat" : [2, 2],
+	"mapSpecularRepeat" : [2, 2],
+	"mapBumpWrap" : ["repeat", "repeat"],
+	"mapSpecularWrap" : ["repeat", "repeat"],
 	"shading" : "Phong",
 	"specularCoef" : 50,
 	"transparency" : 1.0,