cargo fmt

This commit is contained in:
cBournhonesque 2025-01-24 20:20:05 -05:00
parent ea5c87b955
commit 98050b2cdc

View File

@ -1,7 +1,7 @@
//! Demonstrates using a custom extension to the `StandardMaterial` to create a repeating texture that avoids seams
//! by using stochastic sampling. This example uses a custom shader to achieve the effect.
use bevy::prelude::*;
use bevy::image::{ImageAddressMode, ImageSamplerDescriptor};
use bevy::prelude::*;
use bevy::sprite::{Material2d, Material2dPlugin};
use bevy_render::mesh::VertexAttributeValues;
use bevy_render::render_resource::{AsBindGroup, ShaderRef};
@ -57,7 +57,6 @@ impl Material2d for CustomMaterial {
}
}
/// Creates a quad where the texture repeats n times in both directions.
fn repeating_quad(n: f32) -> Mesh {
let mut mesh: Mesh = Rectangle::from_length(1000.0).into();
@ -73,4 +72,4 @@ fn repeating_quad(n: f32) -> Mesh {
uv_coord[1] *= n;
}
mesh
}
}