#Custom material alpha mode

5 messages · Page 1 of 1 (latest)

gusty nymph
#

I have a custom material with the alpha_mode attribute configured. How would I retrieve its value in the shader?

lavish quail
#

It's defined in pbr_types.wgsl, under the names STANDARD_MATERIAL_FLAGS_ALPHA_MODE_* it's a bit barbaric.

#

file is crates/bevy_pbr/src/render/pbr_types.wgsl in the bevy repo

#

I think you can import it with the #include syntax and use the flags this way.

gusty nymph