6 ms·
> big loops or loops with unknown bounds at compile time That’s not allowed in webgl, so I doubt TSL can make it work somehow.
by hansworst 2y ago
> big loops or loops with unknown bounds at compile time
That’s not allowed in webgl, so I doubt TSL can make it work somehow.
- dahart 2y agoWhat do you mean, and are you sure? It works in ShaderToy. Big loops will happily unroll until the compiler crashes. There’s a standard trick for doing variable length loops (and preventing unrolling): https://shadertoyunofficial.wordpress.com/2017/11/19/avoiding-compiler-crash-or-endless-compilation/ https://shadertoyunofficial.wordpress.com/2017/11/19/avoidin...