[Implemented] shininess

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Blobby
User
User
Posts: 17
Joined: Tue Mar 03, 2009 2:30 pm

[Implemented] shininess

Post 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!
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post 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)
Please correct my english
http://purebasic.developpez.com/
Post Reply