(FImage image, float x, float y, float w, float h, float percentage)
| 880 | } |
| 881 | |
| 882 | public void drawGrayTransitionImage(FImage image, float x, float y, float w, float h, float percentage) { |
| 883 | if (image == null) |
| 884 | return; |
| 885 | batch.end(); |
| 886 | shaderGrayscale.bind(); |
| 887 | shaderGrayscale.setUniformf("u_grayness", percentage); |
| 888 | shaderGrayscale.setUniformf("u_bias", 0.6f); |
| 889 | batch.setShader(shaderGrayscale); |
| 890 | batch.begin(); |
| 891 | //draw gray |
| 892 | image.draw(this, x, y, w, h); |
| 893 | //reset |
| 894 | batch.end(); |
| 895 | batch.setShader(null); |
| 896 | batch.begin(); |
| 897 | } |
| 898 | |
| 899 | public void drawGrayTransitionImage(Texture image, float x, float y, float w, float h, boolean withDarkOverlay, float percentage) { |
| 900 | batch.end(); |
no test coverage detected