🔧 Pass window padding to the shaders

This commit is contained in:
Simon Schneegans
2022-05-16 07:38:09 +02:00
parent 812fa6612a
commit de190b4fd9
8 changed files with 29 additions and 8 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ vec2 getRain(vec2 fragCoord) {
float windowAlpha = 1 - clamp(uSize.y * distToDrop, 0, FADE_WIDTH) / FADE_WIDTH;
// Fade at window borders.
rainAlpha *= getAbsoluteEdgeMask(EDGE_FADE);
rainAlpha *= getAbsoluteEdgeMask(EDGE_FADE, 0.5);
// Add some variation to the drop start and end position.
float shorten =