here differents ways of using hlsl in wz4.
ps: here a special build of wz4. It only add a flag to doesn't optimize shaders at compilation for modmaterial. It is interesting in certain case like this custom shader in example, else traditional wz4 build will crash on modmaterial examples. I will find a way to add this flag as optional parameters of modmaterial in a next buid.