# Dynamically compiling shaders into Effects at runtime

**URL:** <https://forums.fusetools.com/t/dynamically-compiling-shaders-into-effects-at-runtime/2899>\
**Category:** General\
**Created:** [September 23, 2016, 11:11am UTC](https://forums.fusetools.com/t/dynamically-compiling-shaders-into-effects-at-runtime/2899 "2016-09-23T11:11:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob.clouth](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rob.clouth](https://forums.fusetools.com/u/rob.clouth)\
**Post date:** [September 23, 2016, 11:11am UTC](https://forums.fusetools.com/t/dynamically-compiling-shaders-into-effects-at-runtime/2899/1 "2016-09-23T11:11:10Z")

</div>

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?

Thaks

---

<div class="post-metadata">

**Author:** ![Bent](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/bent/32/157_2.png) [@Bent](https://forums.fusetools.com/u/Bent)\
**Post date:** [September 23, 2016, 11:58am UTC](https://forums.fusetools.com/t/dynamically-compiling-shaders-into-effects-at-runtime/2899/2 "2016-09-23T11:58:30Z")

</div>

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](https://www.fusetools.com/docs/native-interop/native-js-modules)

---

<div class="post-metadata">

**Author:** ![rob.clouth](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rob.clouth](https://forums.fusetools.com/u/rob.clouth)\
**Post date:** [September 23, 2016, 2:49pm UTC](https://forums.fusetools.com/t/dynamically-compiling-shaders-into-effects-at-runtime/2899/3 "2016-09-23T14:49:41Z")

</div>

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.
