How to write your own material file
I want to config the material of my model, but I don't know how to write it.
material RoboCup/Carpet
{
technique
{
pass
{
ambient 1.0 1.0 1.0 1.0
diffuse 1.0 1.0 1.0 1.0
specular 0.2 0.2 0.2 1.0 12.5
texture_unit
{
scale 0.1 0.1
texture carpet.jpg
filtering trilinear
}
}
}
}
Like this material file. Where can I find the meaning of the parameters? And where can I find the whole parameters that can be set in this file?
Thanks a lot.
Asked by li on 2018-12-20 01:58:48 UTC
Answers
These are Ogre material files, here's a tutorial: http://wiki.ogre3d.org/Materials
Asked by chapulina on 2018-12-20 12:31:24 UTC
Comments
Thank you very much.
Asked by li on 2018-12-23 21:02:03 UTC
Comments