Hello,
How to smooth the facet of my model, please?
ball = (Node) assetManager.loadModel("Models/ShaderBall/heavy.j3o");
ball.setLocalTranslation(0, 0.25f, 0);
Material ballMaterial = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md");
//nodemat.setTexture("DiffuseMap", assetManager.loadTexture("Textures/Terrain/Pond/Pond.jpg"));
// nodemat.setTexture("NormalMap", assetManager.loadTexture("Textures/Terrain/Pond/Pond_normal.png"));
ballMaterial.setBoolean("UseMaterialColors", true);
ballMaterial.setColor("Diffuse", ColorRGBA.Orange);
ballMaterial.setColor("Specular", ColorRGBA.Orange);
ballMaterial.setFloat("Shininess", 64f); // [0,128]
ballMaterial.setBoolean("VertexLighting", true);
ballMaterial.setBoolean("HighQuality", true);
ballMaterial.setBoolean("VTangent", true);
//ballMaterial.setBoolean("HardwareShadows", true);
//ballMaterial.setBoolean("Minnaert", true);
//ballMaterial.setBoolean("WardIso", true);
ball.setMaterial(ballMaterial);
Thank you