Page 1 of 1

Which format for shininess / specular color?

Posted: Wed Dec 22, 2010 5:38 pm
by JeffBTX
Sorry. Noob question. VERY noobish. Noobishisity.

which is correct:

Code: Select all

		materials = 
		{ 
			"back_metal.png" = {
			diffuse_map = "Cor_Front.png";
			emission_map = "Cor_FrontE.png";
			shininess = 10;
			specular_color = (0.30, 0.30, 0.30, 0.50);
			}; 
			"bottom_metal.png" = {
			diffuse_map = "Cor_Side.png";
			emission_map = "Cor_SideE.png";
			shininess = 10;
			specular_color = (0.30, 0.30, 0.30, 0.50);
			}; 
		}; 
... or ...

Code: Select all

		materials = 
		{ 
			"back_metal.png" = {
			diffuse_map = "Cor_Front.png";
			emission_map = "Cor_FrontE.png";
			}; 
			"bottom_metal.png" = {
			diffuse_map = "Cor_Side.png";
			emission_map = "Cor_SideE.png";
			}; 
			shininess = 10;
			specular_color = (0.30, 0.30, 0.30, 0.50);
		};
... or if they BOTH work, I assume that the second one is better, less typing. I can experiment, but the concept "if it works, use it" bothers me. I'd rather know the "most proper way" to do it.

- Thanks

Posted: Wed Dec 22, 2010 7:42 pm
by JensAyton
The former. In the latter case, the shininess/specular_color values are not being used.

Posted: Thu Dec 23, 2010 2:20 pm
by JeffBTX
thanks, Ahruman.