Constants
Structures
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,
Functions
Creates a StandardMaterial with default values
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.