~starkingdoms/starkingdoms

fe5918dbd3d9acdd21112e52d49c31d13d3abd55 — TerraMaster85 5 months ago 4ccbefd
fix: starfield (once and for all?)
1 files changed, 6 insertions(+), 6 deletions(-)

M crates/unified/src/client/starfield.rs
M crates/unified/src/client/starfield.rs => crates/unified/src/client/starfield.rs +6 -6
@@ 235,33 235,33 @@ pub fn update_starfield(
        + (-player.translation / 3.0) % BACK_STARFIELD_SIZE
        + (Vec3::new(
            window.resolution.width(),
            -window.resolution.height() + BACK_STARFIELD_SIZE,
            -window.resolution.height(),
            0.0,
        ) * camera.scale.z
            / 2.0)
            % BACK_STARFIELD_SIZE
        + Vec3::new(0.0, BACK_STARFIELD_SIZE, 0.0)
        //+ Vec3::new(0.0, BACK_STARFIELD_SIZE, 0.0)
        - Vec3::new(0.0, 0.0, 5.0);
    starfield_mid_pos.translation = player.translation
        + (-player.translation / 2.5) % MID_STARFIELD_SIZE
        + (Vec3::new(
            window.resolution.width(),
            -window.resolution.height() + MID_STARFIELD_SIZE,
            -window.resolution.height(),
            0.0,
        ) * camera.scale.z
            / 2.0)
            % MID_STARFIELD_SIZE
        + Vec3::new(0.0, MID_STARFIELD_SIZE, 0.0)
        //+ Vec3::new(0.0, MID_STARFIELD_SIZE, 0.0)
        - Vec3::new(0.0, 0.0, 4.5);
    starfield_front_pos.translation = player.translation
        + (-player.translation / 2.0) % FRONT_STARFIELD_SIZE
        + (Vec3::new(
            window.resolution.width(),
            -window.resolution.height() + FRONT_STARFIELD_SIZE,
            -window.resolution.height(),
            0.0,
        ) * camera.scale.z
            / 2.0)
            % FRONT_STARFIELD_SIZE
        + Vec3::new(0.0, FRONT_STARFIELD_SIZE, 0.0)
        //+ Vec3::new(0.0, FRONT_STARFIELD_SIZE, 0.0)
        - Vec3::new(0.0, 0.0, 4.0);
}