ソースを参照

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;