summaryrefslogtreecommitdiffstats
path: root/assets/shaders/tacmap
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-05-03 18:37:35 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-05-03 18:37:35 -0400
commitdd5de0107163bc3ea3898c07089d00f82feeec5e (patch)
treed8feef7d8a89c01ef183c6b032b29cd6d451aaec /assets/shaders/tacmap
parent759d5d27c7773c7fe8b165ce08b57204db990b74 (diff)
downloadsystemic4x-dd5de0107163bc3ea3898c07089d00f82feeec5e.tar.gz
systemic4x-dd5de0107163bc3ea3898c07089d00f82feeec5e.tar.bz2
systemic4x-dd5de0107163bc3ea3898c07089d00f82feeec5e.zip
add tick and subtick system for solar system orbit updates
Diffstat (limited to 'assets/shaders/tacmap')
-rw-r--r--assets/shaders/tacmap/body.wgsl6
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;
+ }
}
}