Bevy Shader Explorer
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.
☾
Packages
›
naga_oil
0.20.0
0.16.0
0.17.1
0.19.1
0.22.0
›
pbr_fn.wgsl
Save
Structures
pbr_types__StandardMaterial
#
struct
pbr_types__StandardMaterial
{
base_color:
vec4
<
f32
>,
emissive:
vec4
<
f32
>,
perceptual_roughness:
f32
,
metallic:
f32
,
reflectance:
f32
,
flags:
u32
,
alpha_cutoff:
f32
,
}
pbr_functions__PbrInput
#
struct
pbr_functions__PbrInput
{
material:
pbr_types__StandardMaterial
,
occlusion:
f32
,
frag_coord:
vec4
<
f32
>,
world_position:
vec4
<
f32
>,
world_normal:
vec3
<
f32
>,
N:
vec3
<
f32
>,
V:
vec3
<
f32
>,
is_orthographic:
bool
,
}
Functions
pbr_functions__pbr
#
fn
pbr_functions__pbr
(
in:
pbr_functions__PbrInput
)
->
vec4
<
f32
>
Contents
Structures
pbr_types__StandardMaterial
pbr_functions__PbrInput
Functions
pbr_functions__pbr