Skip to content

Shadowmap shader only works in 640x480 #3

@markcwm

Description

@markcwm

Hi,

for anyone interested in shader-based textured shadows, Angros just shared FB example usage of his CreateShadowMap function in Openb3d Plus, so I ported the shadowmap code to Blitzmax, see shadowmap.bmx.

But sadly the main issue is that it only works in 640x480 resolution, if I try 320x240 or 800x600 I get the same result, the shadow seems to be rendered over the whole receiver mesh.

And the same thing happens when I change the shadowmap texture size from 512x512 to 256 or 1024.

Here is the frag shader and here is the vert shader.

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