MCPcopy Create free account
hub / github.com/Card-Forge/forge / drawNoiseFade

Method drawNoiseFade

forge-gui-mobile/src/forge/Graphics.java:1003–1021  ·  view source on GitHub ↗
(TextureRegion image, float x, float y, float w, float h, Float time)

Source from the content-addressed store, hash-verified

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)

Callers 1

drawBackgroundMethod · 0.80

Calls 4

drawImageMethod · 0.95
drawMethod · 0.65
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected