I may have used ai for some of the proc gen..
This commit is contained in:
@@ -15,9 +15,9 @@ vec2_to_vec2i :: proc(v2:[2]f32) -> Vec2i {
|
||||
return {int(v2.x), int(v2.y)}
|
||||
}
|
||||
|
||||
hash_noise :: proc(x, y: int, seed: u32) -> f32 {
|
||||
h: u32 = u32(x) * 374761393
|
||||
h *= u32(y) * 668265263
|
||||
hash_noise :: proc(x, y: int, seed: i64) -> f32 {
|
||||
h: i64 = i64(x) * 374761393
|
||||
h *= i64(y) * 668265263
|
||||
h *= seed
|
||||
h *= 3266489917
|
||||
h >>= 16
|
||||
|
||||
Reference in New Issue
Block a user