27 const WorldData &world_data = world.world_data;
30 uint object_up =
texture(object_id_tx, uv + offset.zy).r;
31 uint object_down =
texture(object_id_tx, uv - offset.zy).r;
32 uint object_right =
texture(object_id_tx, uv + offset.xz).r;
33 uint object_left =
texture(object_id_tx, uv - offset.xz).r;
36 if ((object_up != object_down) || (object_right != object_left)) {
40 if ((object_up == object_right) && (object_right == 0u)) {
49 float normal_diff = (normal_up - normal_down) + (normal_right - normal_left);
51 if (normal_diff < 0) {