This commit is contained in:
cBournhonesque 2025-01-24 20:40:13 -05:00
parent 98050b2cdc
commit 5af442270e
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ fn stochastic_sampling(uv: vec2<f32>, dx: vec2<f32>, dy: vec2<f32>, s: f32) -> v
let offa = sin(vec2<f32>(3.0,7.0)*(i+0.0)); // can replace with any other hash
let offb = sin(vec2<f32>(3.0,7.0)*(i+1.0)); // can replace with any other hash
// sample the two closest virtual pattersn
// sample the two closest virtual patterns
let cola = textureSampleGrad(texture, texture_sampler, uv + s * offa, dx, dy);
let colb = textureSampleGrad(texture, texture_sampler, uv + s * offb, dx, dy);

View File

@ -3,8 +3,8 @@
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};
use bevy::render::mesh::VertexAttributeValues;
use bevy::render::render_resource::{AsBindGroup, ShaderRef};
fn main() {
App::new()