work for today, hopefully tomorrow i will finish ambient occlusion
This commit is contained in:
parent
5a0691c155
commit
0b7eb66703
4 changed files with 10 additions and 21 deletions
|
|
@ -117,9 +117,6 @@ pub const Chunk = struct {
|
|||
const zleft: f32 = if (sign == 1) zmin else zmax;
|
||||
const zright: f32 = if (sign == 1) zmax else zmin;
|
||||
|
||||
_ = y_minus_obscuring_pattern;
|
||||
_ = y_plus_obscuring_pattern;
|
||||
_ = z_plus_obscuring_pattern;
|
||||
if(dimention == 0 and z_minus_obscuring_pattern == 0b10000){
|
||||
std.debug.print("z_minus_obscuring_pattern {b}\n", .{z_minus_obscuring_pattern});
|
||||
std.debug.print("dimension {}\n", .{dimention});
|
||||
|
|
@ -141,10 +138,10 @@ pub const Chunk = struct {
|
|||
.width = zmax - zmin,
|
||||
.height = ymax - ymin,
|
||||
|
||||
.top_obscuring_pattern = 0, //z_plus_obscuring_pattern,
|
||||
.left_obscuring_pattern = if(z_minus_obscuring_pattern == 0b10000) 0x80 else 0,
|
||||
.right_obscuring_pattern = 0, //y_plus_obscuring_pattern,
|
||||
.bottom_obscuring_pattern = 0, //y_minus_obscuring_pattern,
|
||||
.top_obscuring_pattern = z_plus_obscuring_pattern,
|
||||
.left_obscuring_pattern = z_minus_obscuring_pattern,
|
||||
.right_obscuring_pattern = y_plus_obscuring_pattern,
|
||||
.bottom_obscuring_pattern = y_minus_obscuring_pattern,
|
||||
.top_left_obscured = false,
|
||||
.top_right_obscured = false,
|
||||
.bottom_right_obscured = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue