Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
TrinaryWorksToo
8y ago
0 comments
Save
Share
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.
0 comments
2 comments · 1 top-level
top
newest
oldest
sp332
8y ago
· 1 in thread
It does work! I wonder why I didn't think of it while transliterating from my older Python codebase.
FreeFull
8y ago
It's possible it used to not work with an older version of WebGL/GLSL, and now it does.
j
/
k
navigate · click thread line to collapse