-
Notifications
You must be signed in to change notification settings - Fork 140
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
FlxHotReloadShader? #402
Comments
That would be a kinda hard task to do. I am not a pro at how shaders works in OpenFL, but that would require to reload and recompile the shader program frequently. |
the bulk of that work is done due to FlxRuntimeShader, also:
I do think there's plenty of ways to approach this, I plan on making my own, and if it seems generic and useful enough than its worth considering adding it to flixel-addons. otherwise it can be listed in External Tools |
Lime has a FileWatcher class (https://github.com/openfl/lime/blob/develop/src/lime/system/FileWatcher.hx), which could be of use for this |
Now that #399 was added, how hard would it be tie a shader to its original .frag asset, and check for changes to create a new shader instance and update utilizing sprites?
This would only exist on debug
The text was updated successfully, but these errors were encountered: