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
›
wesl
0.6.0
›
gfx.wesl
Save
Constants
exposure
#
const
exposure:
f32
=
1.0
gain
#
const
gain:
f32
=
exposure * 2.0
Functions
tonemap
#
fn
tonemap
(
c:
vec2f
)
->
f32
vert_main
#
fn
vert_main
(
@
builtin
(
vertex_index
)
vi:
u32
)
->
@
builtin
(
position
)
vec4f
frag_main
#
fn
frag_main
(
@
builtin
(
position
)
pos:
vec4f
)
->
@
location
(
0
)
vec4f
Contents
Constants
exposure
gain
Functions
tonemap
vert_main
frag_main