August 24, 2012, 7:53am
Inside the Lighting.j3md MaterialParameters block
// Specular color
Color Specular (MaterialSpecular)
// Specular power/shininess
Float Shininess (MaterialShininess) : 1</div>
What does the name in parentesis mean? and what about the : 1 on the Shininess? I did not find any information about it in that page -->(https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:material_specification)
As J3MLoader.java says:
// <TYPE> <NAME> [ “(” <FFBINDING> “)” ] [ “:” <DEFAULTVAL> ]
FFBINDING would be FixedFuncBinding.
Here’s the whole thing.
August 24, 2012, 9:41am
the name in parenthesis is the fixed func equivalent for opengl 1. Tha’s why the fixed func technique was removed.
the “:1” is the default value for this parameter
Edit : uh… ninjaed by Madjack
August 26, 2012, 5:49pm
How do I specify a vector or a color as a default value? (What is the syntax?)
August 26, 2012, 6:20pm
Found it, just write as a whitespace separated list