Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: clean up and improve local HTML5 testing #78

Merged
merged 5 commits into from
Mar 10, 2025
Merged

Conversation

flexiondotorg
Copy link
Contributor

No description provided.

Added conditional precision qualifiers for WebGL compatibility using the
#ifdef GL_ES preprocessor directive. This ensures the shader works correctly
in both desktop and web environments.

Changed shader parameter from "Image texture" to "sampler2D texture" as
sampler2D is the standard GLSL type for texture samplers across all
platforms, while Image is LÖVE-specific and may not be correctly translated
in WebGL contexts. This addresses the rendering issues observed when
running the game on Itch.io's HTML5 player.
- Added parameterised uniforms for easier tweaking of visual properties
- Added safeguards against division by zero for increased stability
Implements cache-busting mechanism for the test-html.sh script to ensure the browser always loads the latest version of the game during local testing.

If Firefox is installed a clean profile is used to automatically load the game
@flexiondotorg flexiondotorg merged commit 2f93f46 into main Mar 10, 2025
@flexiondotorg flexiondotorg deleted the cleanup branch March 10, 2025 08:54
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.

1 participant