Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.
1#define_import_path bevy_pbr::pbr_bindings
3#import bevy_pbr::pbr_types::StandardMaterial
5@group(2) @binding(0) var<uniform> material: StandardMaterial;
6@group(2) @binding(1) var base_color_texture: texture_2d<f32>;
7@group(2) @binding(2) var base_color_sampler: sampler;
8@group(2) @binding(3) var emissive_texture: texture_2d<f32>;
9@group(2) @binding(4) var emissive_sampler: sampler;
10@group(2) @binding(5) var metallic_roughness_texture: texture_2d<f32>;
11@group(2) @binding(6) var metallic_roughness_sampler: sampler;
12@group(2) @binding(7) var occlusion_texture: texture_2d<f32>;
13@group(2) @binding(8) var occlusion_sampler: sampler;
14@group(2) @binding(9) var normal_map_texture: texture_2d<f32>;
15@group(2) @binding(10) var normal_map_sampler: sampler;
16@group(2) @binding(11) var depth_map_texture: texture_2d<f32>;
17@group(2) @binding(12) var depth_map_sampler: sampler;
18#ifdef PBR_ANISOTROPY_TEXTURE_SUPPORTED
19@group(2) @binding(13) var anisotropy_texture: texture_2d<f32>;
20@group(2) @binding(14) var anisotropy_sampler: sampler;
21#endif
22#ifdef PBR_TRANSMISSION_TEXTURES_SUPPORTED
23@group(2) @binding(15) var specular_transmission_texture: texture_2d<f32>;
24@group(2) @binding(16) var specular_transmission_sampler: sampler;
25@group(2) @binding(17) var thickness_texture: texture_2d<f32>;
26@group(2) @binding(18) var thickness_sampler: sampler;
27@group(2) @binding(19) var diffuse_transmission_texture: texture_2d<f32>;
28@group(2) @binding(20) var diffuse_transmission_sampler: sampler;
29#endif
30#ifdef PBR_MULTI_LAYER_MATERIAL_TEXTURES_SUPPORTED
31@group(2) @binding(21) var clearcoat_texture: texture_2d<f32>;
32@group(2) @binding(22) var clearcoat_sampler: sampler;
33@group(2) @binding(23) var clearcoat_roughness_texture: texture_2d<f32>;
34@group(2) @binding(24) var clearcoat_roughness_sampler: sampler;
35@group(2) @binding(25) var clearcoat_normal_texture: texture_2d<f32>;
36@group(2) @binding(26) var clearcoat_normal_sampler: sampler;
37#endif
Contents