Просмотр исходного кода

Fixed canvas examples with wrong order of calls.
Maybe the renderer should keep a list of things to update for the next render…?

Mr.doob 11 лет назад
Родитель
Сommit
8e0add1d44

+ 1 - 1
examples/canvas_geometry_panorama.html

@@ -119,8 +119,8 @@
 				var image = new Image();
 				image.onload = function () {
 
+					texture.image = this;
 					texture.needsUpdate = true;
-					material.map.image = this;
 
 					render();
 

+ 1 - 1
examples/canvas_geometry_panorama_fisheye.html

@@ -129,8 +129,8 @@
 				var image = new Image();
 				image.onload = function () {
 
+					texture.image = this;
 					texture.needsUpdate = true;
-					material.map.image = this;
 
 					render();