This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
[wgsl-in]/[glsl-out] Bug with vec types and modulo operator #1451
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: GLSL
OpenGL Shading Language
I had some code in wgsl like this:
and hit this when trying to run on WebGL2:
It's specifically the calculated vec3 % constant vec3 that seems to be the problem. I can work around it by individually calculating each component, but I think this is a bug somewhere, perhaps in glsl-out?
The text was updated successfully, but these errors were encountered: