Closed
Description
Calls to material.getAdditionalRenderState().setLineWidth seem to be being ignored in 3.6.0-beta1
With the following sample program
public class LineWidthTest extends SimpleApplication{
public static void main(String[] args){
LineWidthTest app = new LineWidthTest();
AppSettings settings = new AppSettings(true);
app.setShowSettings(false);
app.setSettings(settings);
app.start();
}
@Override
public void simpleInitApp() {
Line line = new Line(new Vector3f(0,0,0), new Vector3f(0,3,0));
Geometry lineGeometry = new Geometry("line", line);
Material lineMat = new Material(getAssetManager(),"Common/MatDefs/Misc/Unshaded.j3md");
lineMat.setColor("Color", ColorRGBA.White);
lineMat.getAdditionalRenderState().setLineWidth(10);
lineGeometry.setMaterial(lineMat);
rootNode.attachChild(lineGeometry);
}
}
On jme 3.6.0-beta1 it appears as follows (thin line):
But on 3.5.0-stable it appeas like this (with the requested thicker line):