I’m having some trouble getting scripted material plugins to extend the DirectX_9_Shader. I’ve gone through a few tutorials and examples now, including Rob’s on the wiki, but I keep hitting the same issue, so I’m wondering what I’m missing.
Basically the plugin isn’t seeing any of the properties exposed in the .fx shader, so it will error out on setting, eg. delegate.g_glossiness from Rob’s tutorial. Additionally, checking meditMaterials[m].effectfile gives me
– Unknown property: “effectfile” in test:Radiant_Machine_Shader
I’ve tried a completely cut down plugin file (just the definition, an empty rollout) with the same results. Not sure what I’m doing wrong here.
Max 2009 64-bit, btw.