From: Daniel Karbach Date: Wed, 25 Nov 2015 16:45:40 +0000 (+0100) Subject: fixed those slabs X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=902590ba6536e722414073bc9979b418e1f5a26f;p=blank-assets.git fixed those slabs --- diff --git a/data/default.shapes b/data/default.shapes index c0ac037..694995a 100644 --- a/data/default.shapes +++ b/data/default.shapes @@ -41,32 +41,31 @@ uniform_block = { uniform_low_slab = { bounds = Cuboid([ -0.5, -0.5, -0.5 ], [ 0.5, 0.0, 0.5 ]); vertices = { - // TODO: fix tex coords // position normal texture - { [ -0.5, -0.5, 0.0 ], [ 0, 0, 1 ], [ 0, 1 ], 0 }, // front - { [ 0.0, -0.5, 0.0 ], [ 0, 0, 1 ], [ 1, 1 ], 0 }, - { [ -0.5, 0.0, 0.0 ], [ 0, 0, 1 ], [ 0, 0 ], 0 }, - { [ 0.0, 0.0, 0.0 ], [ 0, 0, 1 ], [ 1, 0 ], 0 }, - { [ -0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 1, 1 ], 0 }, // back - { [ -0.5, 0.0, -0.5 ], [ 0, 0, -1 ], [ 1, 0 ], 0 }, - { [ 0.0, -0.5, -0.5 ], [ 0, 0, -1 ], [ 0, 1 ], 0 }, - { [ 0.0, 0.0, -0.5 ], [ 0, 0, -1 ], [ 0, 0 ], 0 }, - { [ -0.5, 0.0, -0.5 ], [ 0, 1, 0 ], [ 0, 0 ], 0 }, // top - { [ -0.5, 0.0, 0.0 ], [ 0, 1, 0 ], [ 0, 1 ], 0 }, - { [ 0.0, 0.0, -0.5 ], [ 0, 1, 0 ], [ 1, 0 ], 0 }, - { [ 0.0, 0.0, 0.0 ], [ 0, 1, 0 ], [ 1, 1 ], 0 }, - { [ -0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 1, 0 ], 0 }, // bottom - { [ 0.0, -0.5, -0.5 ], [ 0, -1, 0 ], [ 0, 0 ], 0 }, - { [ -0.5, -0.5, 0.0 ], [ 0, -1, 0 ], [ 1, 1 ], 0 }, - { [ 0.0, -0.5, 0.0 ], [ 0, -1, 0 ], [ 0, 1 ], 0 }, - { [ -0.5, -0.5, -0.5 ], [-1, 0, 0 ], [ 0, 1 ], 0 }, // left - { [ -0.5, -0.5, 0.0 ], [-1, 0, 0 ], [ 1, 1 ], 0 }, - { [ -0.5, 0.0, -0.5 ], [-1, 0, 0 ], [ 0, 0 ], 0 }, - { [ -0.5, 0.0, 0.0 ], [-1, 0, 0 ], [ 1, 0 ], 0 }, - { [ 0.0, -0.5, -0.5 ], [ 1, 0, 0 ], [ 1, 1 ], 0 }, // right - { [ 0.0, 0.0, -0.5 ], [ 1, 0, 0 ], [ 1, 0 ], 0 }, - { [ 0.0, -0.5, 0.0 ], [ 1, 0, 0 ], [ 0, 1 ], 0 }, - { [ 0.0, 0.0, 0.0 ], [ 1, 0, 0 ], [ 0, 0 ], 0 }, + { [ -0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 0.0, 1.0 ], 0 }, // front + { [ 0.5, -0.5, 0.5 ], [ 0, 0, 1 ], [ 1.0, 1.0 ], 0 }, + { [ -0.5, 0.0, 0.5 ], [ 0, 0, 1 ], [ 0.0, 0.5 ], 0 }, + { [ 0.5, 0.0, 0.5 ], [ 0, 0, 1 ], [ 1.0, 0.5 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 1.0, 1.0 ], 0 }, // back + { [ -0.5, 0.0, -0.5 ], [ 0, 0, -1 ], [ 1.0, 0.5 ], 0 }, + { [ 0.5, -0.5, -0.5 ], [ 0, 0, -1 ], [ 0.0, 1.0 ], 0 }, + { [ 0.5, 0.0, -0.5 ], [ 0, 0, -1 ], [ 0.0, 0.5 ], 0 }, + { [ -0.5, 0.0, -0.5 ], [ 0, 1, 0 ], [ 0.0, 0.5 ], 0 }, // top + { [ -0.5, 0.0, 0.5 ], [ 0, 1, 0 ], [ 0.0, 1.0 ], 0 }, + { [ 0.5, 0.0, -0.5 ], [ 0, 1, 0 ], [ 1.0, 0.5 ], 0 }, + { [ 0.5, 0.0, 0.5 ], [ 0, 1, 0 ], [ 1.0, 1.0 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 1.0, 0.5 ], 0 }, // bottom + { [ 0.5, -0.5, -0.5 ], [ 0, -1, 0 ], [ 0.0, 0.5 ], 0 }, + { [ -0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 1.0, 1.0 ], 0 }, + { [ 0.5, -0.5, 0.5 ], [ 0, -1, 0 ], [ 0.0, 1.0 ], 0 }, + { [ -0.5, -0.5, -0.5 ], [-1, 0, 0 ], [ 0.0, 1.0 ], 0 }, // left + { [ -0.5, -0.5, 0.5 ], [-1, 0, 0 ], [ 1.0, 1.0 ], 0 }, + { [ -0.5, 0.0, -0.5 ], [-1, 0, 0 ], [ 0.0, 0.5 ], 0 }, + { [ -0.5, 0.0, 0.5 ], [-1, 0, 0 ], [ 1.0, 0.5 ], 0 }, + { [ 0.5, -0.5, -0.5 ], [ 1, 0, 0 ], [ 1.0, 1.0 ], 0 }, // right + { [ 0.5, 0.0, -0.5 ], [ 1, 0, 0 ], [ 1.0, 0.5 ], 0 }, + { [ 0.5, -0.5, 0.5 ], [ 1, 0, 0 ], [ 0.0, 1.0 ], 0 }, + { [ 0.5, 0.0, 0.5 ], [ 1, 0, 0 ], [ 0.0, 0.5 ], 0 }, }; indices = { 0, 1, 2, 2, 1, 3, // front @@ -255,5 +254,4 @@ player_head = { 16, 17, 18, 18, 17, 19, // left 20, 21, 22, 22, 21, 23, // right }; - fill = [ true, true, true, true, true, true ]; };