我正在尝试将基本点光源应用到ImageView,但是,如在链接的图像中看到的那样,施加照明效果会导致图像变得难以置信的模糊。我如何添加照明,使其看起来像原始图像,并且只有照明? 谢谢
没有照明:https://imgur.com/a/vA6A4f4 使用照明:https://imgur.com/a/j1IaEuV
事件代码:
Image image = new Image("wall.png");
ImageView iv3 = new ImageView();
iv3.setImage(image);
iv3.setFitWidth(30);
iv3.setPreserveRatio(true);
Light.Point light = new Light.Point();
light.setX(15);
light.setY(7);
light.setZ(15);
Lighting lighting = new Lighting();
lighting.setLight(light);
lighting.setSurfaceScale(5.0);
iv3.setEffect(lighting);