diff options
Diffstat (limited to 'assets/shaders/tacmap/body.wgsl')
| -rw-r--r-- | assets/shaders/tacmap/body.wgsl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/assets/shaders/tacmap/body.wgsl b/assets/shaders/tacmap/body.wgsl index 217a0b2..21dc081 100644 --- a/assets/shaders/tacmap/body.wgsl +++ b/assets/shaders/tacmap/body.wgsl @@ -53,8 +53,10 @@ fn vs_main( if all(relative_pos != origin_pos) { if length(relative_pos) < 0.01 { - out.clip_position = vec4<f32>(0.0, 0.0, 0.0, 1.0); - return out; + if length(relative_pos) != 0.0 { + out.clip_position = vec4<f32>(0.0, 0.0, 0.0, 1.0); + return out; + } } } |
