Explorar el Código

Fixed texture uniform in cloth example.

Fixes #2683
alteredq hace 13 años
padre
commit
fea463dccd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;