First off, you need a bit of help understanding the structure of a material shader. Here's some good reading for you...
viewtopic.php?t=6617http://www.modwiki.net/wiki/Material_%28decl%29It's imperative that you understand that the names of material shaders do not correspond with directories. The entire string is the name. The forward slash delimiter used in material shader names is just a means to categorize via the material browser in the level editor.
That said, the easiest way to find a material shader is to treat all the *.mtr files like one big ass text file. There is some indication that effort was made on the part of developers to organize shaders into files but in the end, it didn't work. It's a mess.
rich_is_bored wrote:
First off, you need a bit of help understanding the structure of a material shader. Here's some good reading for you...
viewtopic.php?t=6617http://www.modwiki.net/wiki/Material_%28decl%29It's imperative that you understand that the names of material shaders do not correspond with directories. The entire string is the name. The forward slash delimiter used in material shader names is just a means to categorize via the material browser in the level editor.
That said, the easiest way to find a material shader is to treat all the *.mtr files like one big ass text file. There is some indication that effort was made on the part of developers to organize shaders into files but in the end, it didn't work. It's a mess.
Hi There
So your saying there is no easy way to find the material definition, aside from search through each file.
I have looked over the documents you gave me.
regards
Steve
In the case of writing your own program to search for material shaders, there is no easy means to limit your search to the one *.mtr file with a match. You have to look at them all to find a match.
Keep in mind that you're the one writing a program here though. There's no reason you couldn't work this information out, save it to a file, and reference it later.