Shader Explorer
Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

noisy_bevy.wgsl

Import path

Constants

max_warp_iterations

#
const max_warp_iterations: AbstractInt = 4

Structures

WarpResult

#
struct WarpResult {
noise_value: f32 ,
}

Functions

permute_3_

#
fn permute_3_ ( ) -> vec3<f32>

step_3

#
fn step_3 ( ) -> vec3<f32>

simplex_noise_2d

#
fn simplex_noise_2d ( ) -> f32

simplex_noise_2d_seeded

#
fn simplex_noise_2d_seeded (
seed: f32
) -> f32

permute_4_

#
fn permute_4_ ( ) -> vec4<f32>

taylor_inv_sqrt_4_

#
fn taylor_inv_sqrt_4_ ( ) -> vec4<f32>

simplex_noise_3d

#
fn simplex_noise_3d ( ) -> f32

simplex_noise_3d_seeded

#
fn simplex_noise_3d_seeded ( ) -> f32

fbm_simplex_2d

#

Fractional brownian motion (fbm) based on 2d simplex noise

fn fbm_simplex_2d (
octaves: i32
lacunarity: f32
gain: f32
) -> f32

fbm_simplex_2d_seeded

#

Fractional brownian motion (fbm) based on seeded 2d simplex noise

fn fbm_simplex_2d_seeded (
octaves: i32
lacunarity: f32
gain: f32
seed: f32
) -> f32

fbm_simplex_2d_warp_seeded

#

A technique that distorts the position before feeding it to the noise inspired by https://iquilezles.org/articles/warp/

fn fbm_simplex_2d_warp_seeded (
pos_initial: vec2<f32>
octaves: i32
lacunarity: f32
gain: f32
seed: f32
warp_iterations: i32
warp_scale: vec2<f32>
falloff: f32
) -> WarpResult

fbm_simplex_3d

#

Fractional brownian motion (fbm) based on 3d simplex noise

fn fbm_simplex_3d (
octaves: i32
lacunarity: f32
gain: f32
) -> f32

fbm_simplex_3d_seeded

#

Fractional brownian motion (fbm) based on seeded 3d simplex noise

fn fbm_simplex_3d_seeded (
octaves: i32
lacunarity: f32
gain: f32
) -> f32

worley_2d

#

MIT license, ported from https://github.com/bevy-interstellar/wgsl_noise Cellular noise, lower jitter makes the patern more regular The x component (F1) of the returned result represents the distance to the nearest feature point from the input position The y component (F2) represents the distance to the second nearest feature point from the input position

fn worley_2d (
jitter: f32
) -> vec2<f32>