GithubHelp home page GithubHelp logo

picom-shaders's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

picom-shaders's Issues

Shaders as importable functions?

When setting up the shaders in my rice, i realized that picom can't apply more than one shader per window, so i had to combine the border shader and the transparency shader to properly work together resulting in code redundancy in the shaders.
So i had this idea, that every shader could be transformed into a simple function that takes the pixel and/or coords and all the configuration options as function arguments.
This would make combining and reordering shaders easy.
Problem is, that glsl doesn't support any #import stuff so the functions would either need to be in the same file, or imported in some other funky way.
Having it in the same file doesn't remove code redundancy, but importing in other funky ways seems complicated as fuck:
https://stackoverflow.com/questions/25978295/import-function-from-different-shader
https://stackoverflow.com/questions/10754437/how-to-using-the-include-in-glsl-support-arb-shading-language-include

What do you think?

window borders with shader?

Since you seem to be knowing how to code shaders,
do you think it would be possible to overlay stuff over the windows?
Like for example rounded borders, fixing the problem with picoms rounding features cutting of i3 borders.
(i know xborders exist, but doing it with shaders would be way more elegant)
As far as I have understood shaders, it is generally possible, to draw stuff, but since picoms shaders are just "GLSL fragment shaders", I'm not entirely sure.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.