add texture

This commit is contained in:
cBournhonesque 2025-01-24 18:17:50 -05:00
parent 09d2d3f4d0
commit e8f2dc4e76
2 changed files with 1 additions and 1 deletions

BIN
assets/textures/rocks.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

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, ImageLoaderSettings, ImageSampler, ImageSamplerDescriptor};
use bevy::image::{ImageAddressMode, ImageSamplerDescriptor};
use bevy::sprite::{Material2d, Material2dPlugin};
use bevy_render::mesh::VertexAttributeValues;
use bevy_render::render_resource::{AsBindGroup, ShaderRef};