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

naga oil for composable shaders? #14

Open
jmatsushita opened this issue Feb 25, 2024 · 1 comment
Open

naga oil for composable shaders? #14

jmatsushita opened this issue Feb 25, 2024 · 1 comment

Comments

@jmatsushita
Copy link

Hi there,

Amazing work with this plugin 👏 ! I've been wondering if https://github.com/bevyengine/naga_oil could be useful to make bevy_terrain's shaders more composable, and the library overall more modular?

I'm curious about your thoughts on the matter :)

Cheers,

Jun

@kurtkuehnert
Copy link
Owner

Hi,

I have tried making the shaders more composable already.
Since I have not settled for a final API, I have not invested too much into reusability.

For now, you can overwrite the default fragment and vertex shaders, similar to the spherical example.

I have put most bevy terrain logic in the functions.wgsl and attachments.wgsl files.
You can simply import them and compose them together.

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

2 participants