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
›
bevy_egui
0.37.1
0.31.1
0.33.0
0.36.0
›
paint_callback.wgsl
Save
Constants
POS
#
const
POS:
AbstractFloat
=
array( vec2f(0, -1) * 0.5, vec2f(1, 1) * 0.5, vec2f(-1, 1) * 0.5, )
Functions
vertex
#
@vertex
Processes each 3D point in a model before it's drawn
fn
vertex
(
@
builtin
(
vertex_index
)
vertex_index:
u32
)
->
@
builtin
(
position
)
vec4f
fragment
#
@fragment
Calculates the final color of each pixel on the screen
fn
fragment
()
->
@
location
(
0
)
vec4f
Contents
Constants
POS
Functions
vertex
fragment