New ShadingLanguageX Houdini Plugin

   531   2   1
User Avatar
Member
3 posts
Joined: Jan. 2024
Offline
Hi all, posting this here in case someone is interested.

ShadingLanguageX (SLX) is a high level programming language for MaterialX that makes it easier to express complex shading algorithms. The syntax is similar to GLSL, with MaterialX specific data types and functions, and it compiles to generic `.mtlx` files.

Recently I created a Houdini plugin which makes the language a lot more integrated and easy to use with Houdini. You can find the docs for it here [github.com] and download it from the latest release here [github.com].



1. The SLX Material lop node allows you to reference an SLX shader or write one inline. The node compiles the SLX code to a MaterialX material. You can set the material prim path and assign it to geometry directly on the node, similar to the Material Library node. The compiler detects changes to the SLX and automatically recompiles, giving you seamless code changes to render.



The globals tab allows you to quickly change values in the shader for easier look development and the compile options tab gives you control over how the compiler operates.



2. It comes with six example shaders to get you started learning SLX.

3. You can right click other Material Builder nodes, and a "Convert to SLX Material" option allows you to decompile the MaterialX into an SLX shader.



4. You can build a library of nodes from SLX, which are then available in other Material Builders.



The plugin also works nicely with the VS Code extension, which provides syntax highlighting, code completion+navigation and other features.

Hope people find this useful and looking forward to hearing your feedback!

- Jake
Edited by jakethorn - Nov. 18, 2026 07:07:33

Attachments:
shelf_tool.png (17.7 KB)
slx_mat_node1.png (985.8 KB)
slx_mat_node2.png (1.5 MB)
decompile.png (24.7 KB)
slx_lib.png (79.2 KB)
vs_code.png (1.4 MB)

User Avatar
Staff
1477 posts
Joined: July 2005
Offline
This is awesome!

We were musing about incorporating ShadingLanguageX into Houdini, but at the time it was still python-based, so was harder to implement it as a LOP. IIRC, recently you've reimplemented it in C++.

The conversion to SLX and offering the shaders as nodes in the builder is a cherry on top. Really nead, for something that usually takes several manual steps for Mtlx node graphs.
User Avatar
Member
3 posts
Joined: Jan. 2024
Offline
Thanks Rafal!

Yes the compiler was completely rebuilt in C++. A basic Python interface using pybind11 is still available for those who want it. To be honest, the original Python compiler was the first compiler I'd ever written, so I was happy to write a new one with all the knowledge I'd gained the first time around.

If incorporating SLX into Houdini natively is still something you are interested in then let me know if there is anything I can do on my end!
Edited by jakethorn - Nov. 20, 2026 14:53:07
  • Quick Links