(Texture image, float x, float y, float w, float h, Float time)
| 1043 | } |
| 1044 | |
| 1045 | public void drawHueShift(Texture image, float x, float y, float w, float h, Float time) { |
| 1046 | if (image == null) |
| 1047 | return; |
| 1048 | if (time != null) { |
| 1049 | batch.end(); |
| 1050 | shaderHueShift.bind(); |
| 1051 | shaderHueShift.setUniformf("u_time", time); |
| 1052 | batch.setShader(shaderHueShift); |
| 1053 | batch.begin(); |
| 1054 | //draw |
| 1055 | batch.draw(image, x, y, w, h); |
| 1056 | //reset |
| 1057 | batch.end(); |
| 1058 | batch.setShader(null); |
| 1059 | batch.begin(); |
| 1060 | } else { |
| 1061 | drawImage(image, x, y, w, h); |
| 1062 | } |
| 1063 | } |
| 1064 | |
| 1065 | public void drawHueShift(TextureRegion image, float x, float y, float w, float h, Float time) { |
| 1066 | if (image == null) |
no test coverage detected