cargo fmt
This commit is contained in:
parent
ea5c87b955
commit
98050b2cdc
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user