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

load shader as internal asset? #10

Closed
mattdm opened this issue Sep 24, 2023 · 0 comments · Fixed by #18
Closed

load shader as internal asset? #10

mattdm opened this issue Sep 24, 2023 · 0 comments · Fixed by #18

Comments

@mattdm
Copy link
Contributor

mattdm commented Sep 24, 2023

See bevy_atmosphere example: https://github.com/JonahPlusPlus/bevy_atmosphere/blob/5c691705a95800f3b139842bfb7211f8c4e2ef35/src/plugin.rs#L26

Docs https://docs.rs/bevy/latest/bevy/asset/macro.load_internal_asset.html

This way, people don't need to copy terrain.wgsl into their own project's assets, and I assume that #6 will require the code to select different files, which would get increasingly confusing.

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

Successfully merging a pull request may close this issue.

1 participant