To demarcate the edges of the canyons from the background, I’m trying to draw an outline (without texture). Now I wanted to soften this outline by making it slightly transparent. But that doesn’t work.
Do I have to load a small black dummy texture? Can I also use alpha without texture?
final Geometry triGeometry = new Geometry(geoName, triMesh); final Material mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); // create a simple mat2.setColor("Color", new ColorRGBA(0.1f, 0.2f, 0, 0.1f)); triGeometry.setMaterial(mat2); triGeometry.setQueueBucket(Bucket.Transparent); mat2.getAdditionalRenderState().setBlendMode(BlendMode.Alpha); // activate transparency