linphone-desktop/Linphone/data/shaders/roundEffect.frag
Julien Wadel a1d72e6382 Feature : display accounts.
- Implement shaders to make round images and use qsb --qt6.
- Add picture to Friend.
- Display username if displayname is not found.
- Compute initials from C++ with emojis.
- Add Accounts list in a popup from main window.
- Add a hack on account to update avatar on all AcountModel.
- Add Avatar item for initials/picture.
- Add Contact description item.
- Make sizes proportionals to match designs.
- Add image colorization.
2023-12-01 15:20:48 +01:00

18 lines
493 B
GLSL

#version 440
layout(location = 0) in vec2 coord;
layout(location = 0) out vec4 fragColor;
layout(std140, binding = 0) uniform buf {
mat4 qt_Matrix;
float qt_Opacity;
float edge;
};
layout(binding = 1) uniform sampler2D src;
void main() {
float dist = distance(coord, vec2( 0.5 ));
float delta = fwidth(dist);
float alpha = smoothstep( mix(clamp(edge, 0.0, 1.0), 0.0, 0.5) - delta, 0.5, dist );
vec4 tex = texture(src, coord);
fragColor = mix( tex, vec4(0.0), alpha) * qt_Opacity;
}