Hey, I hope I didnt miss something obvious, but is the above actually possible with the current version?scrawl wrote:.mat files are just plain text files you can spit out with any editor of your choosing.With materials files, thats not just a drag and drop kind of thing though, you cant just spit out a mat file from something like paint.net like you can with a dds.
This gives you much more flexibility - what if you wanted to reuse the same normal map for several materials with a different diffuse texture? That would not be possible if simply appending "_n" to the diffuse texture and using that as normal map.Code: Select all
material foo { parent openmw_objects_base diffuseMap diffuse.jpg normalMap normal.jpg } material bar { parent foo diffuseMap diffuse2.jpg }
It even allows you to make a material completely from scratch with its own shader instead of inheriting from openmw_objects_base (although that isn't simple - if it's supposed to work on all of openmw's platforms, it needs to provide a shader based and an FFP path, and in the future possibly a deferred path as well)
If it is, could someone post a little tutorial on how to add those material txt files?