J3MD question

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.

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 :wink:

Thanks guys! :slight_smile:

How do I specify a vector or a color as a default value? (What is the syntax?)

Found it, just write as a whitespace separated list :slight_smile: