Feral Heart
Help & Guidance => Game Help => Topic started by: FlyingGrass on December 03, 2017, 11:53:31 am
-
I know the function of the other lines of code, but what does the Diffuse line do?
What's the difference between a preset/object with the Diffuse line and a preset/object without the diffuse line?
Do I need the Diffuse line in material/preset codes?
-
i thought it was something to do with the lighting. Test it & see.
-
I tested it, I found that the lighting hits the object differently(Without the Diffuse line, it looks like there's sheets falling off of the object whenever I look around)
-
Diffuse, in the simplest of terms, is essentially the color of an object. In reality, it is the color that an object reflects under pure white light.
The default setting in ORGE is full white, meaning objects reflect the maximum white light they can.
The diffuse setting has no effect if the ’lighting off’ attribute is used, or if any texture layer has a ’colour_op replace’ attribute.
Essentially, if you leave out the other light settings (ambient, specular, and emissive) and only play with diffuse, you can tint your object with different colors.
It is not required, since OGRE will default to the white diffuse if it's not specified.
-
Ok, I understand that, so now this topic can be locked.
Thank you, Kuri and Lucius!