-
Notifications
You must be signed in to change notification settings - Fork 61
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
Revive the ReloadableProgram #84
Comments
That one is lingering from the my original project this one is based on. It was a bit more frameworky so there was a default I had completely forgotten about this and it might be possible to salvage it. It's a very useful feature to be able to reload programs while running. |
Thank you, for your quick answer. So, for the default R key behavior do I need to use the Default camera? |
The reload stuff is not really working well, so I would abandone using the In the meantime you can look at : https://github.com/einarf/shadertoy |
What you have made it already?? :D |
Of course. It's not perfect, but it works 😄 |
Do you use any kind of file watcher? |
Nope. It just stats the files in intervals. A bit lazy, but I needed it to work cross platform. There was some bug with a library I was using for it and I just took the simple path for now. |
Thank you. So, do you have any future plan about ReloadableProgram support with watchdog or something like that for moderngl-window? |
It's an immensely useful feature, so the plan is definitely to add it when there is time. This issue can be a reminder that it needs to be done. |
I have created a Custom Window Context with GLFW, where I have needed to create a single file shader program with below code:
resources.programs.load(ProgramDescription(path = shader_path, reloadable = True))
I am unable to understand the behavior of the code. Does it suppose to reload the shader program auto magically or I am missing something?
The text was updated successfully, but these errors were encountered: