Improve drawing with segments

This commit is contained in:
Andras Schmelczer 2023-04-26 20:34:59 +01:00
parent fea5ecfcee
commit 9f01a9e236
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
10 changed files with 89 additions and 200 deletions

View file

@ -4,5 +4,5 @@
@fragment
fn fragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
return textureSample(TargetTexture, mySampler, uv) * 10.0;
return vec4(textureSample(TargetTexture, mySampler, uv).rgb * 1.0, 1);
}