Pixel shader to eliminate huge bright surfaces



  • Hi Flux cummunity. I just experimented with dark-themes in IDEs and found out they are having a great effekt on my mood and sleepability (besides using f.lux off course). Using an inverted black-white filter also helps a lot when browsing but the problem is always that it's hard to recognise some visual elements. So the idea is to have a special pixel shader for the whole desktop that kind of only draws the outlines of bright surfaces and leaves the inner areas dark (kind of automatic dark theming). Technically this is maybe possible to test if inside a bright area by looking at the neighbouring pixels if they are all bright and then darken that pixel.

    What do you think about that idea ? Can you implement it into f.lux ? Or how does f.lux make system-wide pixel shaders ?