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

Fix shader compilation on certain devices #13

Merged
merged 5 commits into from
Sep 1, 2022

Conversation

Dobby233Liu
Copy link
Contributor

@Dobby233Liu Dobby233Liu commented Aug 28, 2022

This mainly changes ints that are supposed to be floats to actual floats. Seems like GLES ES compilers don't like it when you put ints in places when you should put floats, probably because the spec doesn't want you to do it; sometimes there are no function overloads that account for doing so, sometimes the compiler complains when you try to compare a int with a float. I have no clue, I'm not good at shader stuff.

TODO:

  • check if this makes shader compilation fail on desktop platforms, and fix them
  • check if this introduces any regressions, and fix them

@SylviBlossom SylviBlossom merged commit 9726dcd into KristalTeam:main Sep 1, 2022
skarph pushed a commit to skarph/Kristal that referenced this pull request Dec 30, 2023
…-fix

Fix shader compilation on certain devices
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.

None yet

2 participants