Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Did the % operator not work? I just tested 1 % 10 and it seemed to compile. I used the % operator in other shaders. Remember that WebGL is ultimately a sub and superset of C.


It does work! I wonder why I didn't think of it while transliterating from my older Python codebase.


It's possible it used to not work with an older version of WebGL/GLSL, and now it does.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: