Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
TrinaryWorksToo
on Oct 2, 2017
|
parent
|
context
|
favorite
| on:
Calculating the Distance Between Points in Wrap Ar...
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.
sp332
on Oct 2, 2017
[–]
It does work! I wonder why I didn't think of it while transliterating from my older Python codebase.
FreeFull
on Oct 2, 2017
|
parent
[–]
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: