In order to make this happen, the shaders need attached to the textures somehow. In NWShader, I used material files to handle this. The concept is each mod or texture pack has a file listing textures, the shader to be used, and any settings.
What I'm trying to figure out now is the syntax for those. The current options are:
Simple XML form:
Simple curly form:
material "flat_texture.dds"{ effect = "bump.fx"; parameters { bump_texture = "bump_texture.dds"; }}
Since this system will be used most by artists, I'd like to get some feedback from you before going one way or the other.
I will be making simple tools, and potentially a Max plugin, to help handle this, but those all depend on which format is used. They also won't be out immediately, so there might be a short period where materials are written by hand.
Anyone have a preference between the above snippets?