NodeMaterial with custom vertex shader

Hello, and I have been looking for resources on how to use a NodeMaterial (created using NME) with a custom vertex shader (written using GLSL). Specifically, if I am able to use the two together and which attributes/varyings the NodeMaterial expects.

Please let me know if there are discussions or examples regarding how to accomplish this, or if there are expected limitations to using them togther.

Thanks,
r

The node material is a full material which means it comes with its vertex and fragment shader.

What you can do is use a custom block in the vertex part of NME to use your own glsl code:
Node Material Editor Custom Blocks | Babylon.js Documentation

Thanks, and I will look deeper into the docs at the CustomBlock.

1 Like