3d9545d2e0
shaders: minor premultiplication fixes
2023-08-18 22:07:28 +02:00
6e53c47e68
renderer: fix missing premultiplication for border multisampling
2023-08-06 20:46:00 +02:00
6c10c38481
renderer: fully switch to premultiplied alpha
2023-08-06 20:33:36 +02:00
Vaxry
d96f8ff0fe
renderer: Various Blur Improvements ( #2877 )
...
* move blur to its own category
* blur improvements, contrast, brightness, noise
2023-08-03 15:11:10 +02:00
vaxerski
833d73df09
shaders: short-circuit rounding if radius <= 0
2023-07-20 18:18:53 +02:00
end-4
e1edfde539
Allow setting alpha value for ignorezero layer rule ( #2477 )
...
* rename ignorezero to ignorealpha
* allow setting ignorealpha value
This commit allows setting a float value (0-1) for the ignorealpha layer rule.
Does not yet have error handling; invalid ignorealpha layer rule will crash Hyprland.
* add brackets i forgot to add
* prevent crash with invalid ignorealpha value
prevents hyprland from immediately crashing with invalid ignorealpha layer rule
does not log
* don't try to set ignoreAlphaValue if alpha value not specified
* add catch to try, reintroduce ignorezero
- added catch after try cuz i was an idiot
- re-add ignorezero as an alternative to ignorealpha to not introduce a breaking change
* add logging for failed ignorealpha layer rule
* fix get ignorealpha's get VALUE
* check npos and use empty()
* rename VALUE cuz no longer const
* format Shader.hpp
2023-06-11 19:30:31 +02:00
vaxerski
e7185b338f
debug: minor improvements to manual crash
2023-04-04 22:04:32 +01:00
7d9977d028
debug: added manual_crash
2023-04-04 14:50:03 +01:00
vaxerski
c418007c68
shaders: fix missing discardAlphaZero
2023-03-24 19:43:50 +00:00
vaxerski
e5870d47c7
LS: add blur and ignorezero rules
2023-03-17 23:16:13 +00:00
vaxerski
b69f40815f
opengl: use a passthru shader for final wlr copy
2023-03-04 14:59:27 +00:00
vaxerski
4fd90144d1
touch up the clang format and format all files
2022-12-20 02:18:47 +00:00
vaxerski
ff4ea1a13a
fix border inner offset in shader
2022-11-29 21:11:37 +00:00
vaxerski
212f599412
fix AA on borders
2022-11-29 11:12:29 +00:00
vaxerski
7699d657d9
optimize border shader
...
Do not calculate gradient for discarded fragments
2022-11-27 00:30:44 +00:00
vaxerski
6cbaad896c
use highp for pixcoord to fix nvidia border issues
2022-11-26 23:55:41 +00:00
vaxerski
0db75852f3
fix transformed border thickness
2022-11-26 20:36:05 +00:00
vaxerski
afe688e6ab
allow 360 degrees of freedom in gradients
2022-11-26 19:37:20 +00:00
vaxerski
684c59e5bc
optimize data feeding to gradient renderer
2022-11-26 18:09:57 +00:00
vaxerski
0948b078e1
added border gradients
2022-11-26 17:57:02 +00:00
vaxerski
1c9a0be8c4
fix up the border shader
2022-11-26 13:51:30 +00:00
vaxerski
c78db1212b
Unify rounding shaders
2022-11-21 18:09:47 +00:00
Felix Dick
e8be1507ef
Remove texcoord from QUADFRAGSRC.
...
texcoord is unused in the rounding part of the textureshaders.
QUADFRAGSRC isn't using that variable inside the non rounding code.
Because of that opengl optimizes that variable out, and is complaining
if glGetAttribLocation is called on it.
2022-10-05 00:04:32 +02:00
Felix Dick
c6333ba796
Remove unused ignoreCorners variable from texture shaders.
2022-10-01 03:30:58 +02:00
Felix Dick
6fe103cf06
Cut the number of pixels that call length() in half.
2022-10-01 03:14:13 +02:00
Felix Dick
71733f68ef
Merge branch 'fix_rounding_in_size_changing_windows' into rework_rounding_shader
2022-10-01 01:35:13 +02:00
Felix Dick
6eb7d00386
Send absolute screen coordinates to texture shaders.
2022-09-29 23:19:56 +02:00
Felix Dick
b38e7b596f
Don't pass bottomRight to textureShaders compute it within.
2022-09-29 21:10:05 +02:00
Felix Dick
65fb526d5c
Even less branching (taken more or less from the border shader).
2022-09-29 06:56:17 +02:00
Felix Dick
0549aa193f
fixing your shit.
2022-09-28 23:33:18 +02:00
Felix Dick
168a326609
Merge branch 'main' into rework_rounding_shader
2022-09-28 23:11:11 +02:00
Felix Dick
7edbaea23d
Make the rounding texture shaders smaller and more efficient.
2022-09-28 18:40:04 +02:00
Felix Dick
bf3f519eb7
Remove trailing whitespace.
2022-09-25 20:07:48 +02:00
vaxerski
48eb2e0d6f
Added window dimming
2022-08-30 12:46:17 +02:00
vaxerski
cb2989cec5
fix fade corner artifacts
2022-07-16 21:10:16 +02:00
vaxerski
44aeb1fc90
added decoration:shadow_offset
2022-06-26 22:15:06 +02:00
vaxerski
1a0b2c4ade
rewritten borders, fixed msaa
2022-06-26 19:39:56 +02:00
vaxerski
747ff3369d
added drop shadows
2022-06-25 20:28:40 +02:00