فهرست منبع

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 سال پیش
والد
کامیت
8e0add1d44
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      examples/canvas_geometry_panorama.html
  2. 1 1
      examples/canvas_geometry_panorama_fisheye.html

+ 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();