| 1083 | } |
| 1084 | |
| 1085 | public void drawChromatic(TextureRegion image, float x, float y, float w, float h, Float time) { |
| 1086 | if (image == null) |
| 1087 | return; |
| 1088 | if (time != null) { |
| 1089 | batch.end(); |
| 1090 | shaderChromaticAbberation.bind(); |
| 1091 | shaderChromaticAbberation.setUniformf("u_time", time); |
| 1092 | batch.setShader(shaderChromaticAbberation); |
| 1093 | batch.begin(); |
| 1094 | //draw |
| 1095 | batch.draw(image, x, y, w, h); |
| 1096 | //reset |
| 1097 | batch.end(); |
| 1098 | batch.setShader(null); |
| 1099 | batch.begin(); |
| 1100 | } else { |
| 1101 | drawImage(image, x, y, w, h); |
| 1102 | } |
| 1103 | } |
| 1104 | |
| 1105 | public void drawRipple(FImage image, float x, float y, float w, float h, Float amount) { |
| 1106 | if (image == null) |