将效果应用于meshView JavaFx

时间:2015-10-23 13:03:33

标签: java javafx 3d shader

我正在尝试调整颜色,但这似乎只适用于ImageView。有没有理由不在MeshView上工作?

Material material = new PhongMaterial(new Color(1, 0, 0, 1));
meshView.setMaterial(material);

ColorAdjust colorAdjust = new ColorAdjust();
colorAdjust.setContrast(0.5);
colorAdjust.setHue(-0.55);
colorAdjust.setBrightness(0.2);
colorAdjust.setSaturation(0.2);

meshView.setEffect(colorAdjust);

0 个答案:

没有答案