Skip to content

Issue #872: Fix float overflow in plasma transition shader - #873

Merged
kblaschke merged 1 commit into
projectM-visualizer:masterfrom
kblaschke:bugfix/872-dev-bug-broken-plasma-transition-on-nvidia-shield-number-overflow
Mar 4, 2025
Merged

kblaschke merged 1 commit into
projectM-visualizer:masterfrom
kblaschke:bugfix/872-dev-bug-broken-plasma-transition-on-nvidia-shield-number-overflow

Conversation

@kblaschke

@kblaschke kblaschke commented Feb 28, 2025

Copy link
Copy Markdown
Member

On higher resolutiuons and when using GLES, the plasma transition shader could result in generating using huge numbers as input for sin(), returning NaN as a result and breaking the shader output. Fixed by dividing each coordinate multiplier by 10.000.

@kblaschke kblaschke added the bug The issue is (potentially) a bug. label Feb 28, 2025
@kblaschke kblaschke added this to the 4.2 milestone Feb 28, 2025
@kblaschke kblaschke self-assigned this Feb 28, 2025
@kblaschke kblaschke linked an issue Feb 28, 2025 that may be closed by this pull request
2 tasks
@kblaschke kblaschke moved this to In Review in libprojectM Release 4.2 Feb 28, 2025
@kblaschke
kblaschke merged commit 0227b7a into projectM-visualizer:master Mar 4, 2025
@github-project-automation github-project-automation Bot moved this from In Review to Done in libprojectM Release 4.2 Mar 4, 2025
@kblaschke
kblaschke deleted the bugfix/872-dev-bug-broken-plasma-transition-on-nvidia-shield-number-overflow branch March 4, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug The issue is (potentially) a bug.

Projects

Development

Successfully merging this pull request may close these issues.

[DEV BUG] Broken Plasma transition on Nvidia Shield (number overflow)

2 participants