Code: Select all
hlms ship_human0_mat pbs
{
roughness 0.4
fresnel 1.33
diffuse_map ship_human0_BaseColor.png
normal_map ship_human0_Normal.png
roughness_map ship_human0_Roughness.png
specular_map ship_human0_Metallic.png
}
1. diffuse
2. normal
3. metallic
4. height
5. emissive
6. roughness
I know that emissive has been added in a more recent version of Ogre 2.1 but I don't have time to update right now so I simply merged the emissive as a layer over the diffuse map.
The metallic texture is a black and white texture so from what I understand I must set the metallic workflow because the specular is the default one. So the question is: how do I set the metallic workflow from this type of definition. I tried workflow metallic like in json type materials but it doesn't work.
I found viewtopic.php?f=25&p=520767#p520765 so it looks like there is no way of doing this except in code, but maybe something changed in the meantime as the post is from 2015.
Also I tried reading on PBR from the links provided http://wiki.ogre3d.org/HLMS+Materials pbr volume 1 and 2 but the links are expired. I think this is the new version: https://academy-api.substance3d.com/cou ... a9313a35cc
Also, how do I map the height map to the current pbs available maps?
In general, do you consider I should me moving to the json format or continue to use the old format?