an A6 material is broken into 2 parts, the material definition and the effect string. You can include the effect string in the material definition, or put it into an .fx file. If you have an .fx file then you need to have a material definition in script. Just do exactly as i have shown and it will work.
remember the effect string is direct3d code, not c-script. C-script has no idea what is in the effect string at all.. it just needs to know where it is and what material it is applied to. In practice, you can define a bunch of seperate materials in script and then have them all use the same .fx file for the shader. That way you can have many different material properties and not have to write a bunch of seperate .fx files or material scripts.
Last edited by Matt_Aufderheide; 01/16/05 13:05.