~starkingdoms/starkingdoms

e4439c252469a94162f4049a8b070384397b4b14 — ghostly_zsh 8 months ago 844bd3d
smooth textures
2 files changed, 2 insertions(+), 1 deletions(-)

M crates/client/src/networking/mod.rs
M crates/client/src/rendering/mod.rs
M crates/client/src/networking/mod.rs => crates/client/src/networking/mod.rs +1 -1
@@ 127,7 127,7 @@ pub fn process_packets(
                                    PlanetType::Earth => "earth.svg",
                                    PlanetType::Moon => "moon.svg",
                                    PlanetType::Mars => "mars.svg",
                                    PlanetType::Jupiter => "sun.svg",
                                    PlanetType::Jupiter => "jupiter.svg",
                                    PlanetType::Saturn => "saturn.svg",
                                    PlanetType::Uranus => "venus.svg",
                                    PlanetType::Neptune => "mars.svg",

M crates/client/src/rendering/mod.rs => crates/client/src/rendering/mod.rs +1 -0
@@ 393,6 393,7 @@ impl ApplicationHandler for App {

                    let texture_object = gl.create_texture().expect("Failed to create texture object");
                    gl.bind_texture(glow::TEXTURE_2D, Some(texture_object));
                    gl.tex_parameter_i32(glow::TEXTURE_2D, glow::TEXTURE_MIN_FILTER, glow::LINEAR_MIPMAP_LINEAR as i32);
                    gl.tex_image_2d(glow::TEXTURE_2D, 0, glow::RGBA as i32,
                        image.width as i32, image.height as i32, 0, glow::RGBA,
                        glow::UNSIGNED_BYTE, PixelUnpackData::Slice(Some(&image.bytes)));