Procházet zdrojové kódy

Fixed texture uniform in cloth example.

Fixes #2683
alteredq před 13 roky
rodič
revize
fea463dccd
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;