Fixed a lot of bad math causing issues in negative chunks
This commit is contained in:
@@ -12,7 +12,7 @@ vec2i_to_vec2 :: proc(v2i:Vec2i) -> [2]f32 {
|
||||
}
|
||||
|
||||
vec2_to_vec2i :: proc(v2:[2]f32) -> Vec2i {
|
||||
return {int(v2.x), int(v2.y)}
|
||||
return {int(math.floor(v2.x)), int(math.floor(v2.y))}
|
||||
}
|
||||
|
||||
hash_noise :: proc(x, y: int, seed: i64) -> f32 {
|
||||
|
||||
Reference in New Issue
Block a user