diff options
Diffstat (limited to 'assets/shaders/tacmap/fleet.wgsl')
| -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; } |
