remove hyprland from config
This commit is contained in:
parent
c3a4fc2bb2
commit
3c0896e976
24 changed files with 235 additions and 1134 deletions
31
modules/automapaper/display-with_vars.glsl
Normal file
31
modules/automapaper/display-with_vars.glsl
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#version 310 es
|
||||
precision
|
||||
highp
|
||||
float;
|
||||
|
||||
uniform sampler2D tex2D;
|
||||
uniform sampler2D old2D;
|
||||
uniform ivec2 resolution;
|
||||
uniform float frame_part;
|
||||
|
||||
in highp vec2 texCoords;
|
||||
out vec4 stateColor;
|
||||
|
||||
const vec4 bgColor = @background@ ;
|
||||
const vec4 fgColor = @foreground@ ;
|
||||
|
||||
void main() {
|
||||
vec2 canvasSize = vec2(textureSize(tex2D, 0));
|
||||
vec4 state = texture(tex2D, texCoords);
|
||||
vec4 ostate = texture(old2D, texCoords);
|
||||
|
||||
vec2 localCoords = fract(gl_FragCoord.xy / vec2(resolution) * canvasSize);
|
||||
localCoords = localCoords - 0.5;
|
||||
float dist = sqrt(dot(localCoords, localCoords));
|
||||
|
||||
float size = smoothstep(0.0, 1.0, pow(mix(ostate.g, state.g, frame_part), 3.0)) * 0.35;
|
||||
float mask = 1.0 - step(size, dist);
|
||||
|
||||
float brightness = mix(ostate.r, state.r, frame_part) + 0.2 * pow(mix(ostate.g, state.g, frame_part), 3.0);
|
||||
stateColor = mix(bgColor, fgColor, brightness * mask);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue