Explorar o código

Fixed texture uniform in cloth example.

Fixes #2683
alteredq %!s(int64=12) %!d(string=hai) anos
pai
achega
f9c2e9161d
Modificáronse 1 ficheiros con 1 adicións e 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;