Permalink
Browse files

Fix cloth simulation

  • Loading branch information...
1 parent f29003b commit 8d0e064e2de81baace42545e30dfd66e4d7aa0a2 @mortennobel committed Jul 21, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 example/cloth_simulation/diffuse_doubleside_fs.glsl
@@ -2,6 +2,7 @@ precision mediump float;
varying vec2 vUv;
varying vec3 vNormal;
varying vec3 vEcPosition;
+varying vec4 vShadowMapCoord;
uniform vec4 mainColor;
uniform sampler2D mainTexture;
@@ -19,7 +20,7 @@ void main(void)
vec3 pointLight = getPointLightDiffuse(normal,vEcPosition, _pLights);
float visibility;
if (SHADOWS){
- visibility = computeLightVisibility();
+ visibility = computeLightVisibility(vShadowMapCoord);
} else {
visibility = 1.0;
}

0 comments on commit 8d0e064

Please sign in to comment.