-
Hi, I'm trying learn and write a custom shader in wgsl, but I don't want to lose shadows so it seems that I must import
and create a config with but the problem is
this snippet seems enough to replicate error
is this a bug or I am missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You need to add the following imports to your shader:
I expect that other functions in In all fairness, it's a poorly documented side of bevy that is not intuitive. |
Beta Was this translation helpful? Give feedback.
-
at the end all the imports I had to have was:
|
Beta Was this translation helpful? Give feedback.
You need to add the following imports to your shader:
view
is a uniform defined inmesh_view_bindings
. It is not imported by eitherpbr_types
orpbr_functions
, therefore if you don't importmesh_view_bindings
, it won't be available for them.I expect that other functions in
pbr_functions
require other bindings defined in the files I listed.In all fairness, it's a poorly documented side of bevy that is not intuitive.