Dynamically compiling shaders into Effects at runtime

Would it be possible to do this in Fuse: pass a javascript string to a ‘CustomEffect’ element at runtime that dynamically compiles the shader code and starts running it.

Also, is it possible to have offscreen render buffers, and if so, can you read the pixels back from them into Javascript land?


Sounds like you’ll want to play with Uno code for this, and then expose some parameters to JS in a native module. Take a look at https://www.fusetools.com/docs/native-interop/native-js-modules

Thanks. I was just wondering if there were examples or docs describing the effects system, and how to use shaders and the like. The documentation on Uno is pretty slim.