Parameters
| Name | Type | Description |
|---|---|---|
| p | vec2<f32> | Input 2D vector to hash. |
Returns
WGSL Code
fn hash22(p: vec2<f32>) -> vec2<f32> { var p3 = fract(vec3<f32>(p.xyx) * vec3<f32>(0.1031, 0.1030, 0.0973)); p3 += dot(p3, p3.yzx + 33.33); return fract((p3.xx + p3.yz) * p3.zy); }