Open yavko opened 1 year ago
edit: pasted the code directly here since the discord link doesn't last forever
https://github.com/sigma-957/hyprland-shaders/blob/main/crt.frag my modified version based on it, added scanlines and some color corrections crt.txt
There's a blue light filter and vibrance, both of which are included in https://github.com/loqusion/hyprshade.
I personally think we should have a dedicated place for this, with screenshots and everything. A GitHub issue isn't gonna cut it is it? What do you think?
I personally think we should have a dedicated place for this, with screenshots and everything. A GitHub issue isn't gonna cut it is it? What do you think?
the issue is to collect them, not to store them. as per the purpose of this repository, they will be store in this awesome-hyprland repository with links.
Yeah, I'll create something for them ;)
I think we should at least store copies of them, in case the original sources get deleted.
Ofc
simple blur shader
```frag #version 330 core precision mediump float; varying vec2 v_texcoord; uniform sampler2D tex; uniform int blurRadius = 1; void main() { if (blurRadius <= 0) { gl_FragColor = texture(tex, v_texcoord); return; } vec2 invTextureSize = 1.0f / textureSize(tex, 0); float invBlurRadius = 1.0f / float(blurRadius); float samples = 0.0f; vec4 colorSum = vec4(0.0f); for (int x = -blurRadius; x <= blurRadius; ++x) { for (int y = -blurRadius; y <= blurRadius; ++y) { vec2 offset = vec2(x, y) * invTextureSize; float strength = 1 - (length(offset) * invBlurRadius); samples += strength; vec2 coords = v_texcoord + offset; colorSum += texture(tex, coords) * strength; } } colorSum /= samples; gl_FragColor = colorSum; } ```
What does this blur exactly, the whole screen?
What does this blur exactly, the whole screen?
yeah, no need for it though, just thought it'd be cool to make
Can you also post screenshots along with the shader ? Makes browsing this thread easier , thanks!
i don't know how to with nvidia
i don't know how to with nvidia
https://github.com/hyprland-community/awesome-hyprland#screenshotting
https://github.com/hyprland-community/awesome-hyprland#screenshotting
sorry, I should've added more detail, screenshotting works fine but the shaders aren't applied to the screenshot
Ohhh didn't know sorry. I imagine you would have to screenshot and theeen apply shader somehow, that's probably why noone posted screenshots
Sick
Don't know if you're still accepting shaders since there is a pull request, but someone said I should put this here: https://github.com/Euro20179/.files/blob/master/.config/hypr/shaders/crt.frag
It's another crt shader, but it's different from the one posted earlier
It's a modified version of this
And since someone wanted screenshots, here's a screenshot
t from the one posted earlier
It's a modi
sick ill add it
t from the one posted earlier It's a modi
sick ill add it
I asked him to post it in here cause it doesn't use uniform lowp float time;
Shaders without time doesn't require damage_tracking to be disabled.
I think you should add some sort of note which shaders might need damage_tracking to be turned off when you add it.
t from the one posted earlier It's a modi
sick ill add it
I asked him to post it in here cause it doesn't use
uniform lowp float time;
Shaders without time doesn't require damage_tracking to be disabled.I think you should add some sort of note which shaders might need damage_tracking to be turned off when you add it.
Oh is that so?
Shaders are pretty powerful, you can force colorschemes on your entire display, make modern LCD look like a 80s CRT, and other stuff I'm not even thinking of. So let's add a section for them. Problem is I have 1 shader, and having just one is pointless, so if you have any shaders or know someone who does please share shaders in the replies!