pbr_ambient.wgsl
Parameter | Type |
---|---|
world_position |
vec4<f32>
![]() |
world_normal |
vec3<f32>
![]() |
V |
vec3<f32>
![]() |
NdotV |
f32
![]() |
diffuse_color |
vec3<f32>
![]() |
specular_color |
vec3<f32>
![]() |
perceptual_roughness |
f32
![]() |
occlusion |
vec3<f32>
![]() |
NdotV
is provided because it is computed regardless, butworld_normal` and the view vector `V
are provided separately for more advanced uses.