This package parses OGRE .material with versions < 1.10 files into json.
npm install material-parser --save
node index.js [path of the .material file/s]
the json
file will appear in the current directory as material.json
this material file:
material ArmPart/Diffuse
{
receive_shadows off
technique
{
pass
{
texture_unit
{
texture parts.png
}
}
}
}
would be parsed to:
{"ArmPart/Diffuse":{"texture":"parts.png"}}