Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I switch shaders? #8

Open
StarrKiss opened this issue Jun 9, 2019 · 4 comments
Open

How do I switch shaders? #8

StarrKiss opened this issue Jun 9, 2019 · 4 comments

Comments

@StarrKiss
Copy link

Do I have to edit the config.mk and re build every time?

@kuravih
Copy link
Owner

kuravih commented Jun 9, 2019

Yes, atm you do have to rebuild. I'm working on a more dynamic way of doing this.
The other option is to just edit the fragment.glsl file you are using, and it should reload as it runs.

@StarrKiss
Copy link
Author

Here is an idea, that I would do if I understood open gl, is to have all teh shader files stored in the root dir under gllock, and make it so that the user types in gllock and then the name of the shader, and that those commands could go to the root directory.

@MarcelRobitaille
Copy link

In the mean time, I have released a package to the aur using the crt shader: https://aur.archlinux.org/packages/gllock-crt-git/ (patches config.mk before build). I could easily add packages for different shaders by request.

@Meakk
Copy link

Meakk commented Feb 4, 2020

Shaders are compiled at run time. I have not tested yet but you can create a symbolic link to the shader you want to use and use the symbolic link path in gllock. Modifying the link before running gllock should do the trick without having to rebuild gllock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants