Skip to content

Add shadow mapping example#69

Open
zigzagoooooon wants to merge 2 commits into
devkitPro:masterfrom
zigzagoooooon:shadow_mapping
Open

Add shadow mapping example#69
zigzagoooooon wants to merge 2 commits into
devkitPro:masterfrom
zigzagoooooon:shadow_mapping

Conversation

@zigzagoooooon

Copy link
Copy Markdown

No description provided.

@nahiassis

nahiassis commented May 24, 2026

Copy link
Copy Markdown

this doesnt seem to work on azahar (doesnt render the teapot to the map), and on real hardware it freezes everything, so no luma or anything besides the off button. tried figuring out why this happens but just can't. tried using gpu_fragopmode_shadow and gpu_fragopmode_gl but they just make things worse.

edit: it does work well on a build of citra i have but that's it

@Yackerw

Yackerw commented Jun 11, 2026

Copy link
Copy Markdown

Works fine for me, on both Azahar and real hardware. Though it kinda looks like there's flickering specs of shadow acne on the teapot.

@marccane

marccane commented Jun 14, 2026

Copy link
Copy Markdown

Works for me too both on hardware and azahar. Amazing demo. Edit: Look at this modification https://github.com/marccane/3dsGraphicsProjects/tree/main/citro3d-shadow-stereo

@nahiassis

Copy link
Copy Markdown

Works for me too both on hardware and azahar. Amazing demo. Edit: Look at this modification https://github.com/marccane/3dsGraphicsProjects/tree/main/citro3d-shadow-stereo

i'll be taking a look thxx

@nahiassis

nahiassis commented Jul 1, 2026

Copy link
Copy Markdown
Captura de tela 2026-07-01 153057

yeah no still doesn't work
when the shadow texture makes this cross shape, it is guaranteed to crash (freeze everything) on the "real deal" the 3ds itself.
edit: the incorrect image still does project fine onto objects as can be seen in the image, but no proper shadow exists, so can't be treated as working

edit2: it does work on the 3ds, what?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants