소스 검색

Data Texture Update

Data Texture does not update itself automatically. This is either a bug or a documentation issue (this behaviour is not described in documentation).
greenfox1505 7 년 전
부모
커밋
689f8bb3df
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      docs/api/textures/DataTexture.html

+ 1 - 0
docs/api/textures/DataTexture.html

@@ -57,6 +57,7 @@
 		// used the buffer to create a [name]
 
 		var texture = new THREE.DataTexture( data, width, height, THREE.RGBFormat );
+		texture.needsUpdate = true
 		</code>
 
 		<h2>Properties</h2>