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_feronia::forward_sss_io
3struct VertexOutput {
4 // Standard Bevy PBR fields
5 @builtin(position) position: vec4<f32>,
6 @location(0) world_position: vec4<f32>,
7 @location(1) world_normal: vec3<f32>,
9#ifdef VERTEX_UVS_A
10 @location(2) uv: vec2<f32>,
11#endif
12#ifdef VERTEX_UVS_B
13 @location(3) uv_b: vec2<f32>,
14#endif
15#ifdef VERTEX_TANGENTS
16 @location(4) world_tangent: vec4<f32>,
17#endif
18#ifdef VERTEX_OUTPUT_INSTANCE_INDEX
19 @location(6) @interpolate(flat) instance_index: u32,
20#endif
21#ifdef VISIBILITY_RANGE_DITHER
22 @location(7) @interpolate(flat) visibility_range_dither : i32,
23#endif
25 /// SSS fields
26 @location(8) thinness_factor: f32,
27};
Contents