nikki93/grall2 — Issue #2: [PATCH] broken shadows
Author: scrawl
Created: 2012-01-31 20:53:03+00:00
State: open

The shadows are broken (compile error in Base.cg)

Base.cg line 240:

oColor *= shadow(shadowMap2, shadowPos2);// + float4(0.1, 0.1, 0, 1);

I changed it to:

oColor *= shadowPCF9(shadowMap2, shadowPos2, invShadowMapSize2.xy);// + float4(0.1, 0.1, 0, 1);

this fixed the shadows.

Another fix would be to comment out the parameter "invShadowMapSize2" in Base.program