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

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 12 лет назад
Родитель
Сommit
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();
 				var image = new Image();
 				image.onload = function () {
 				image.onload = function () {
 
 
+					texture.image = this;
 					texture.needsUpdate = true;
 					texture.needsUpdate = true;
-					material.map.image = this;
 
 
 					render();
 					render();
 
 

+ 1 - 1
examples/canvas_geometry_panorama_fisheye.html

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

粤ICP备19079148号