🔧 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
View File
@@ -92,6 +92,7 @@ Please study this code carefully, all of it is explained with inline comments.
// float uProgress: A value which transitions from 0 to 1 during the entire animation.
// float uTime: A steadily increasing value in seconds.
// vec2 uSize: The size of uTexture in pixels.
// float uPadding: The empty area around the actual window (e.g. where the shadow is drawn).
#include "common/uniforms.glsl"
// The width of the fading effect is loaded from the settings.