(FImage image, float x, float y, float w, float h, Float amount)
| 1103 | } |
| 1104 | |
| 1105 | public void drawRipple(FImage image, float x, float y, float w, float h, Float amount) { |
| 1106 | if (image == null) |
| 1107 | return; |
| 1108 | if (amount != null) { |
| 1109 | batch.end(); |
| 1110 | shaderRipple.bind(); |
| 1111 | shaderRipple.setUniformf("u_time", amount); |
| 1112 | shaderRipple.setUniformf("u_bias", 0.7f); |
| 1113 | batch.setShader(shaderRipple); |
| 1114 | batch.begin(); |
| 1115 | //draw |
| 1116 | image.draw(this, x, y, w, h); |
| 1117 | //reset |
| 1118 | batch.end(); |
| 1119 | batch.setShader(null); |
| 1120 | batch.begin(); |
| 1121 | } else { |
| 1122 | drawImage(image, x, y, w, h); |
| 1123 | } |
| 1124 | } |
| 1125 | |
| 1126 | public void drawPixelated(FImage image, float x, float y, float w, float h, Float amount, boolean flipY) { |
| 1127 | if (image == null) |
no test coverage detected