Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::particle::noise Namespace Reference

Functions

f32 hash2 (i32 x, i32 y)
glm::vec2 grad2 (i32 x, i32 y)
f32 fade (f32 t)
f32 perlin2 (glm::vec2 p)
f32 fbm2 (glm::vec2 p, i32 octaves)
glm::vec2 curl (glm::vec2 sample, i32 octaves)

Function Documentation

◆ curl()

glm::vec2 esengine::particle::noise::curl ( glm::vec2 sample,
i32 octaves )
inline

Definition at line 80 of file ParticleNoise.hpp.

References fbm2().

◆ fade()

f32 esengine::particle::noise::fade ( f32 t)
inline

Definition at line 40 of file ParticleNoise.hpp.

Referenced by perlin2().

◆ fbm2()

f32 esengine::particle::noise::fbm2 ( glm::vec2 p,
i32 octaves )
inline

Definition at line 64 of file ParticleNoise.hpp.

References perlin2().

Referenced by curl().

◆ grad2()

glm::vec2 esengine::particle::noise::grad2 ( i32 x,
i32 y )
inline

Definition at line 34 of file ParticleNoise.hpp.

References hash2(), and esengine::math::TWO_PI.

Referenced by perlin2().

◆ hash2()

f32 esengine::particle::noise::hash2 ( i32 x,
i32 y )
inline

Definition at line 26 of file ParticleNoise.hpp.

Referenced by grad2().

◆ perlin2()

f32 esengine::particle::noise::perlin2 ( glm::vec2 p)
inline

Definition at line 43 of file ParticleNoise.hpp.

References fade(), grad2(), and esengine::math::lerp().

Referenced by fbm2().