switch to noise lib that works on arm neon (apple)
This commit is contained in:
@@ -58,7 +58,7 @@ const ZERO3F = vec3<f32>(0.0);
|
||||
const ZERO2F = vec2<f32>(0.0);
|
||||
const FULL_ALPHA = 0.999;
|
||||
const EPSILON = 0.00000000001;
|
||||
const MAX_ITERS = 2000;
|
||||
const MAX_ITERS = 10000;
|
||||
// NOTE: CANNOT GO HIGHER THAN 23 due to how floating point
|
||||
// numbers are stored and the bit manipulation used
|
||||
const MAX_SCALE: u32 = 13;
|
||||
@@ -166,12 +166,8 @@ fn trace_full(pos_view: vec4<f32>, dir_view: vec4<f32>) -> vec4<f32> {
|
||||
}
|
||||
var pos = (pos_view + dir_view * real_t).xyz;
|
||||
pos[axis] = round(pos[axis]) - (1.0 - dir_uf[axis]);
|
||||
// if true {return vec4<f32>(floor(pos) / 16.0, 1.0);}
|
||||
// let pos = (vox_pos - 1.5) * (dir_if) + 0.5 - scale_exp2 * (1.0 - dir_uf);
|
||||
// let pos = t / t_mult;
|
||||
// if true {return vec4<f32>(pos, 1.0);}
|
||||
let vcolor = get_color(node & LEAF_MASK, pos);
|
||||
let normal = normals[axis];
|
||||
var normal = normals[axis];
|
||||
let light_color = vec3<f32>(1.0);
|
||||
let light_dir = global_lights[0].dir;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user