(TextureRegion image, float x, float y, float w, float h, Float time)
| 1001 | } |
| 1002 | |
| 1003 | public void drawNoiseFade(TextureRegion image, float x, float y, float w, float h, Float time) { |
| 1004 | if (image == null) |
| 1005 | return; |
| 1006 | if (time != null) { |
| 1007 | batch.end(); |
| 1008 | shaderNoiseFade.bind(); |
| 1009 | shaderNoiseFade.setUniformf("u_time", time); |
| 1010 | batch.setShader(shaderNoiseFade); |
| 1011 | batch.begin(); |
| 1012 | //draw |
| 1013 | batch.draw(image, x, y, w, h); |
| 1014 | //reset |
| 1015 | batch.end(); |
| 1016 | batch.setShader(null); |
| 1017 | batch.begin(); |
| 1018 | } else { |
| 1019 | drawImage(image, x, y, w, h); |
| 1020 | } |
| 1021 | } |
| 1022 | |
| 1023 | public void drawPortalFade(TextureRegion image, float x, float y, float w, float h, Float time, boolean opaque) { |
| 1024 | if (image == null) |
no test coverage detected