Color fragments by sin(position)

This commit is contained in:
mars 2022-05-11 09:22:08 -06:00
parent d05308e717
commit 31e336f4ef
1 changed files with 1 additions and 1 deletions

View File

@ -34,5 +34,5 @@ fn vs_main(
fn fs_main(
frag: VertexOutput,
) -> [[location(0)]] vec4<f32> {
return vec4<f32>(1.0);
return vec4<f32>(sin(frag.position) * vec3<f32>(0.5) + vec3<f32>(0.5), 1.0);
}