Hacker News new | ask | show | jobs
by hansworst 746 days 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.

1 comments

What 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/avoidin...