소스 검색

Fixed texture uniform in cloth example.

Fixes #2683
alteredq 12 년 전
부모
커밋
f9c2e9161d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/webgl_animation_cloth.html

+ 1 - 1
examples/webgl_animation_cloth.html

@@ -202,7 +202,7 @@
 				clothGeometry.dynamic = true;
 				clothGeometry.computeFaceNormals();
 
-				var uniforms = { texture:  { type: "t", value: 0, texture: clothTexture } };
+				var uniforms = { texture:  { type: "t", value: clothTexture } };
 				var vertexShader = document.getElementById( 'vertexShaderDepth' ).textContent;
 				var fragmentShader = document.getElementById( 'fragmentShaderDepth' ).textContent;