|
@@ -63,8 +63,7 @@ Use a wireframe grid (com.jme3.scene.debug.Grid) as a ruler or simple floor.
|
|
|
|
|
|
private Geometry attachGrid(Vector3f pos, int size, ColorRGBA color) {
|
|
private Geometry attachGrid(Vector3f pos, int size, ColorRGBA color) {
|
|
Geometry g = new Geometry("wireframe grid", new Grid(size, size, 0.2f));
|
|
Geometry g = new Geometry("wireframe grid", new Grid(size, size, 0.2f));
|
|
- Material mat = new Material(assetManager,
|
|
|
|
- "Common/MatDefs/Misc/Unshaded.j3md");
|
|
|
|
|
|
+ Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
|
|
mat.getAdditionalRenderState().setWireframe(true);
|
|
mat.getAdditionalRenderState().setWireframe(true);
|
|
mat.setColor("Color", color);
|
|
mat.setColor("Color", color);
|
|
g.setMaterial(mat);
|
|
g.setMaterial(mat);
|