When I am using specular map, I also have to set some color properties on the material,
tankMaterial.setBoolean("UseMaterialColors", true);
tankMaterial.setColor("Diffuse", ColorRGBA.White);
tankMaterial.setColor("Ambient", ColorRGBA.Blue);
tankMaterial.setColor("Specular", ColorRGBA.White);
tankMaterial.setFloat("Shininess", 50);
I understand that I have to set the Shininess and Specular value for the the specular map. But I am already using diffuse map, so why I have to set the diffuse color? My understanding is that I need to use Diffuse color when I am not using diffuse map.
Also if I donât set any diffuse color, the model appears black, and if I set it other color(i.e. red) it affects the whole model. So is White is a placeholder color to prevent it from interfering with the Diffuse map?