Constants
Used by 9 shaders
- bevy 0.19.1 — array_texture.wgsl
- bevy_pbr 0.19.1 — pbr.wgsl
- bevy_pbr 0.19.1 — pbr_fragment.wgsl
- bevy_pbr 0.19.1 — pbr_functions.wgsl
- bevy_pbr 0.19.1 — pbr_prepass.wgsl
- bevy_pbr 0.19.1 — pbr_prepass_functions.wgsl
- naga_oil 0.22.0 — pbr.wgsl
- naga_oil 0.22.0 — pbr_bindings.wgsl
- naga_oil 0.22.0 — pbr_functions.wgsl
Used by 11 shaders
- bevy_pbr 0.19.1 — deferred_lighting.wgsl
- bevy_pbr 0.19.1 — pbr.wgsl
- bevy_pbr 0.19.1 — pbr_deferred_functions.wgsl
- bevy_pbr 0.19.1 — pbr_deferred_types.wgsl
- bevy_pbr 0.19.1 — pbr_fragment.wgsl
- bevy_pbr 0.19.1 — pbr_functions.wgsl
- bevy_pbr 0.19.1 — pbr_prepass.wgsl
- bevy_pbr 0.19.1 — pbr_prepass_functions.wgsl
- naga_oil 0.22.0 — pbr.wgsl
- naga_oil 0.22.0 — pbr_bindings.wgsl
- naga_oil 0.22.0 — pbr_functions.wgsl
Used by 9 shaders
- bevy_pbr 0.19.1 — pbr.wgsl
- bevy_pbr 0.19.1 — pbr_deferred_types.wgsl
- bevy_pbr 0.19.1 — pbr_fragment.wgsl
- bevy_pbr 0.19.1 — pbr_functions.wgsl
- bevy_pbr 0.19.1 — pbr_prepass.wgsl
- bevy_pbr 0.19.1 — pbr_prepass_functions.wgsl
- naga_oil 0.22.0 — pbr.wgsl
- naga_oil 0.22.0 — pbr_bindings.wgsl
- naga_oil 0.22.0 — pbr_functions.wgsl
Structures
Used by 9 shaders
- bevy_pbr 0.19.1 — pbr.wgsl
- bevy_pbr 0.19.1 — pbr_bindings.wgsl
- bevy_pbr 0.19.1 — pbr_fragment.wgsl
- bevy_pbr 0.19.1 — pbr_functions.wgsl
- bevy_pbr 0.19.1 — pbr_prepass.wgsl
- bevy_pbr 0.19.1 — pbr_prepass_functions.wgsl
- naga_oil 0.22.0 — pbr.wgsl
- naga_oil 0.22.0 — pbr_bindings.wgsl
- naga_oil 0.22.0 — pbr_functions.wgsl
struct
StandardMaterial
{
}
perceptual_roughness:
f32,
metallic:
f32,
diffuse_transmission:
f32,
specular_transmission:
f32,
thickness:
f32,
ior:
f32,
attenuation_distance:
f32,
clearcoat:
f32,
clearcoat_perceptual_roughness:
f32,
anisotropy_strength:
f32,
flags:
u32,
alpha_cutoff:
f32,
parallax_depth_scale:
f32,
max_parallax_layer_count:
f32,
lightmap_exposure:
f32,
max_relief_mapping_search_steps:
u32,
deferred_lighting_pass_id:
u32,
Used by 11 shaders
- bevy 0.19.1 — array_texture.wgsl
- bevy_pbr 0.19.1 — clustered.wgsl
- bevy_pbr 0.19.1 — pbr.wgsl
- bevy_pbr 0.19.1 — pbr_deferred_functions.wgsl
- bevy_pbr 0.19.1 — pbr_fragment.wgsl
- bevy_pbr 0.19.1 — pbr_functions.wgsl
- bevy_pbr 0.19.1 — pbr_prepass.wgsl
- bevy_pbr 0.19.1 — pbr_prepass_functions.wgsl
- naga_oil 0.22.0 — pbr.wgsl
- naga_oil 0.22.0 — pbr_bindings.wgsl
- naga_oil 0.22.0 — pbr_functions.wgsl
struct
PbrInput
{
}
material:
StandardMaterial,
specular_occlusion:
f32,
anisotropy_strength:
f32,
is_orthographic:
bool,
flags:
u32,
Functions
Creates a StandardMaterial with default values
Used by 10 shaders
- bevy 0.19.1 — array_texture.wgsl
- bevy_pbr 0.19.1 — pbr.wgsl
- bevy_pbr 0.19.1 — pbr_deferred_functions.wgsl
- bevy_pbr 0.19.1 — pbr_fragment.wgsl
- bevy_pbr 0.19.1 — pbr_functions.wgsl
- bevy_pbr 0.19.1 — pbr_prepass.wgsl
- bevy_pbr 0.19.1 — pbr_prepass_functions.wgsl
- naga_oil 0.22.0 — pbr.wgsl
- naga_oil 0.22.0 — pbr_bindings.wgsl
- naga_oil 0.22.0 — pbr_functions.wgsl
Creates a PbrInput with default values
Since this is a hot path, try to keep the alignment and size of the struct members in mind. You can find the alignment and sizes at https://www.w3.org/TR/WGSL/#alignment-and-size.