3 ms·
I couldn't even find an integer modulus operation when I was porting my fractal code to WebGL. https://www.shadertoy.com/view/MdSXWc https://www.shadertoy.com/v
by sp332 9y ago
I couldn't even find an integer modulus operation when I was porting my fractal code to WebGL. https://www.shadertoy.com/view/MdSXWc https://www.shadertoy.com/view/MdSXWc
- TrinaryWorksToo 9y agoDid 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.