Skip to content

[PATCH] broken shadows #2

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions