Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Created September 6, 2022 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewjberger/5b7fc22645eace339b96ba0a913d3d42 to your computer and use it in GitHub Desktop.
Save matthewjberger/5b7fc22645eace339b96ba0a913d3d42 to your computer and use it in GitHub Desktop.
cool shader effect
@fragment
fn fragment_main(in: VertexOutput) -> @location(0) vec4<f32> {
return vec4<f32>(0.2, sin(in.position.x), 0.5, 1.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment