Page 1 of 1

[Implemented] shininess

Posted: Fri Mar 06, 2009 12:49 pm
by Blobby
Hai!

Would it be possible to have a way of setting the shininess of a material in Ogre? I know we have a specular command, but it has the essential shininess component missing.

Specular without the shininess component is quite pointless. It would be like having having RGB() command without the blue component. RG()

In a ogre material file the shininess value is on the end of the specular command:

specular 1.0 1.0 1.0 12.5

So perhaps we could have:

MaterialSpecularColor(#Material, Color,Shininess)

Example:

MaterialSpecularColor(1,RGB(255,255,255),12.5)




ps - Keep up the great work!

Posted: Fri Mar 06, 2009 8:33 pm
by Comtois
yes i asked for this too :)
OGre doc say :
Format: specular (<red> <green> <blue> [<alpha>]| vertexcolour) <shininess>

does <shininess> work in PB if it is used in a script?

would be nice if this function become :
MaterialSpecularColor(#Matiere, Color,shininess)