5 ms·
I think with that threejs' TSL approach there is an opportunity to simulate computations in JS instead of translating it to GLSL. Just need to write an eagerly-
by xpl 2y ago
I think with that threejs' TSL approach there is an opportunity to simulate computations in JS instead of translating it to GLSL. Just need to write an eagerly-evaluating runtime for those EDSL expressions.
Once it's done, you'll be able to use the regular Chrome's Devtools debugger to step through TSL logic.
A nice thing is that would also allow you to unit-test your shading code using regular JS frameworks for testing.