Turning on vertex lighting

For many of my models, I export from sketchup and get an mesh.xml and .material, which I then convert to j3o. I never have a .j3m material file. I am trying to turn vertex lighting on, is there a way I can do it without a material file, preferably in code?

(I can open in scene composer, select individual geometries, select generated material, then tick vertex lighting in that, but there is about 10 per j3o file, and about 100 seperate j3o files so far; hoping I can avoid it?)

http://hub.jmonkeyengine.org/javadoc/com/jme3/scene/SceneGraphVisitorAdapter.html
http://hub.jmonkeyengine.org/javadoc/com/jme3/scene/Geometry.html#getMaterial()
http://hub.jmonkeyengine.org/javadoc/com/jme3/material/Material.html#setBoolean(java.lang.String,%20boolean)

1 Like

Thanks