diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-12 19:01:27 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-12 19:01:27 -0400 |
| commit | a0a3b3974cab754c10a1517d82762b99482970ce (patch) | |
| tree | 8aeb0ca1e007bacecc8e12a263bd5aa321b8f69a /assets | |
| parent | 7f63ec5c10eb7e8dd4edaabd1a6a437328911d39 (diff) | |
| download | systemic4x-main.tar.gz systemic4x-main.tar.bz2 systemic4x-main.zip | |
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/shaders/tacmap/fleet.wgsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/assets/shaders/tacmap/fleet.wgsl b/assets/shaders/tacmap/fleet.wgsl index 8a87fb9..a79024d 100644 --- a/assets/shaders/tacmap/fleet.wgsl +++ b/assets/shaders/tacmap/fleet.wgsl @@ -44,7 +44,7 @@ fn vs_main( instance.rotmat_1, instance.rotmat_2 ); - let model_pos = rotmat * FLEET_VERTICES[index] * 0.025; + let model_pos = rotmat * FLEET_VERTICES[index] * 0.01; var view = camera.view; let min_size = 0.025; @@ -61,7 +61,7 @@ fn vs_main( let instance_vp_pos = view_proj * vec4<f32>(instance_pos, 1.0); let model_vp_pos = view_proj * vec4<f32>(model_pos, 0.0); - out.clip_position = instance_vp_pos + model_vp_pos; + out.clip_position = instance_vp_pos + model_vp_pos / normalize(instance_vp_pos).w; out.color = vec3<f32>(0.75, 1.0, 0.75); return out; } |
