# Using shaders exported from Node Material Editor

**URL:** <https://forum.babylonjs.com/t/using-shaders-exported-from-node-material-editor/15628>\
**Category:** Questions\
**Tags:** shader\
**Created:** [November 12, 2020, 12:02pm UTC](https://forum.babylonjs.com/t/using-shaders-exported-from-node-material-editor/15628 "2020-11-12T12:02:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [November 12, 2020, 2:11pm UTC](https://forum.babylonjs.com/t/using-shaders-exported-from-node-material-editor/15628/3 "2020-11-12T14:11:34Z")

</div>

The exported shader code is not really meant to be used directly because it would need a lot of wrapping to be functional. See [#include directives in shader code output from Node Material Editor](https://forum.babylonjs.com/t/include-directives-in-shader-code-output-from-node-material-editor/10730/2) for eg.

What you should do is either exporting the js code, as you did in [your PG](https://playground.babylonjs.com/#JICX85) or use the `NodeMaterial.ParseXXX` functions: [https://playground.babylonjs.com/#JICX85#1](https://playground.babylonjs.com/#JICX85#1)

---

_[View the full topic](https://forum.babylonjs.com/t/using-shaders-exported-from-node-material-editor/15628)._
