Skip to content
Myr

Update stb_voxel_render.h

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by guitarfreak · committed by GitHub · parent 1a31473 · Browse files · 1 file+2 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−14 removed

  • other:+2 added−14 removed

1 file+2 added−14 removed

modified:stb_voxel_render.h+2 added-14 removed
3008 unmodified lines
3009 nrot[4] = (mm->input.selector[v_off + 1] >> 4) & 3;3010 nrot[5] = (mm->input.selector[v_off - 1] >> 4) & 3;3011 }3012 #endif3013 } else if (mm->input.block_selector) {3014 #ifndef STBVOX_CONFIG_ROTATION_IN_LIGHTING3015 if (mm->input.packed_compact == NULL) {3016 rot = (mm->input.block_selector[bt ] >> 4) & 3;3017 nrot[0] = (mm->input.block_selector[nbt[0]] >> 4) & 3;3018 nrot[1] = (mm->input.block_selector[nbt[1]] >> 4) & 3;3019 nrot[2] = (mm->input.block_selector[nbt[2]] >> 4) & 3;3020 nrot[3] = (mm->input.block_selector[nbt[3]] >> 4) & 3;3021 nrot[4] = (mm->input.block_selector[nbt[4]] >> 4) & 3;3022 nrot[5] = (mm->input.block_selector[nbt[5]] >> 4) & 3;3023 }3024 #endif3013 } else {3014 #ifndef STBVOX_CONFIG_ROTATION_IN_LIGHTING3015 if (mm->input.packed_compact == NULL) {3016 rot = (geo>>4)&3;
316 unmodified lines
3333 rotate.block = (val >> 0) & 3;3334 rotate.overlay = (val >> 2) & 3;3335 //rotate.tex2 = (val >> 4) & 3;3336 rotate.ecolor = (val >> 6) & 3;3349 } else if (mm->input.selector || mm->input.block_selector) {3337 } else if (mm->input.selector) {3338 rotate.block = rotate.overlay = rotate.ecolor = simple_rot;3339 }33403341 if ((visible_faces & (1 << STBVOX_FACE_north)) || (extreme && (ht[2] == 3 || ht[3] == 3)))
33 unmodified lines
3375 rot.block = (val >> 0) & 3;3376 rot.overlay = (val >> 2) & 3;3377 //rot.tex2 = (val >> 4) & 3;3378 rot.ecolor = (val >> 6) & 3;3391 } else if (mm->input.selector || mm->input.block_selector) {3379 } else if (mm->input.selector) {3380 rot.block = rot.overlay = rot.ecolor = simple_rot;3381 }3382 rot.facerot = 0;3383
379 unmodified lines