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.
Star
☾
Packages
›
bevy_feronia
0.5.6
›
fragment.wgsl
Save
Constants
SSS_DISTORTION
#
const
SSS_DISTORTION:
f32
=
0.5
SSS_WRAP
#
const
SSS_WRAP:
f32
=
0.2
SSS_WRAP_INV
#
const
SSS_WRAP_INV:
f32
=
1.0 / (1.0 + SSS_WRAP)
LIGHT_INTENSITY_SCALE
#
const
LIGHT_INTENSITY_SCALE:
AbstractFloat
=
0.00005
Functions
fragment
#
@fragment
Calculates the final color of each pixel on the screen
fn
fragment
(
in:
VertexOutput
,
@
builtin
(
front_facing
)
is_front:
bool
)
->
FragmentOutput
calculate_sss_lighting
#
fn
calculate_sss_lighting
(
scale:
f32
,
intensity:
f32
,
pbr_input:
PbrInput
,
thinness_factor:
f32
)
->
vec3
<
f32
>
Contents
Constants
SSS_DISTORTION
SSS_WRAP
SSS_WRAP_INV
LIGHT_INTENSITY_SCALE
Functions
fragment
calculate_sss_lighting