Color fragments by sin(position)
This commit is contained in:
parent
d05308e717
commit
31e336f4ef
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue