Replies: 1 comment
-
I think the closest you can get is: https://docs.rs/bevy/latest/bevy/prelude/struct.Shader.html#method.from_wgsl_with_defs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I have
assets/shaders/example_shader.wgsl
and want to import stuff fromsrc/shaders/shader_util.wgsl
.In
shader_util
I do#define_import_path project_name::shader_util;
and in
example_shader
I do#import project_name::shader_util;
,but when compiled it fails saying it cannot find the requested module. What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions