Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Reload shaders as they change #1

Merged
merged 2 commits into from Sep 21, 2016
Merged

Conversation

mythmon
Copy link
Contributor

@mythmon mythmon commented Sep 20, 2016

No description provided.

@jimblandy
Copy link
Owner

YAY

One thing is that this only works if you run the program from the parent of the src directory. Could we make it so that it uses include_str! for the initial program, and then only replaces that if it successfully loads the files? That way it would continue to work no matter how you run it, and running it from a particular directory would only be necessary to make the live update feature work.

@mythmon mythmon force-pushed the live-shaders branch 2 times, most recently from 00641a0 to 7d90512 Compare September 21, 2016 18:42
@mythmon
Copy link
Contributor Author

mythmon commented Sep 21, 2016

That's a good idea. I've updated it to use include_str! for the initial load.

@jimblandy jimblandy merged commit f029091 into jimblandy:master Sep 21, 2016
@jimblandy
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants