소스 검색

Merge pull request #14561 from Mugen87/dev18

Examples: Ensure CanvasTexture is used in webgl_materials_texture_canvas
Michael Herzog 7 년 전
부모
커밋
6d492ed3ae
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      examples/webgl_materials_texture_canvas.html

+ 1 - 2
examples/webgl_materials_texture_canvas.html

@@ -95,8 +95,7 @@
 
 				// set canvas as material.map (this could be done to any map, bump, displacement etc.)
 
-				material.map = new THREE.Texture( drawingCanvas );
-				material.map.needsUpdate = true;
+				material.map = new THREE.CanvasTexture( drawingCanvas );
 
 				// set the variable to keep track of when to draw