From 180aad05decc7eefa87e4e45d6747c48f40e5361 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Mon, 17 Apr 2023 12:12:01 -0400 Subject: save --- assets/blocks/blocks.json | 21 +++++ assets/blocks/bricks.json | 10 +++ assets/blocks/cactus.json | 12 +++ assets/blocks/chiseled_stone_bricks.json | 10 +++ assets/blocks/cobblestone.json | 10 +++ assets/blocks/cracked_stone_bricks.json | 10 +++ assets/blocks/dirt.json | 10 +++ assets/blocks/glass.json | 10 +++ assets/blocks/grass.json | 12 +++ assets/blocks/leaves.json | 10 +++ assets/blocks/mossy_cobblestone.json | 10 +++ assets/blocks/mossy_stone_bricks.json | 10 +++ assets/blocks/plank.json | 10 +++ assets/blocks/sand.json | 10 +++ assets/blocks/sandstone.json | 12 +++ assets/blocks/stone.json | 10 +++ assets/blocks/stone_bricks.json | 10 +++ assets/blocks/water.json | 10 +++ assets/blocks/wood.json | 12 +++ assets/blocks/wool.json | 10 +++ assets/font/yugothic.fnt | 101 +++++++++++++++++++++++ assets/gen/biome_data.json | 15 ++++ assets/gen/biomes/beach.json | 8 ++ assets/gen/biomes/desert.json | 11 +++ assets/gen/biomes/forest.json | 11 +++ assets/gen/biomes/grassland.json | 11 +++ assets/gen/biomes/ice.json | 8 ++ assets/gen/biomes/jungle.json | 11 +++ assets/gen/biomes/mountain.json | 8 ++ assets/gen/biomes/ocean.json | 8 ++ assets/gen/biomes/rainforest.json | 11 +++ assets/gen/biomes/river.json | 8 ++ assets/gen/biomes/savanna.json | 11 +++ assets/gen/biomes/taiga.json | 11 +++ assets/gen/biomes/tundra.json | 11 +++ assets/gen/biomes/woodland.json | 11 +++ assets/gen/decorations/cactus.json | 9 ++ assets/gen/decorations/pine.json | 24 ++++++ assets/gen/decorations/tree.json | 24 ++++++ assets/models/cactus.json | 55 ++++++++++++ assets/models/default.json | 55 ++++++++++++ assets/models/water.json | 55 ++++++++++++ assets/shaders/Chunk_FS.glsl | 22 +++++ assets/shaders/Chunk_VS.glsl | 35 ++++++++ assets/shaders/Font_FS.glsl | 28 +++++++ assets/shaders/Font_VS.glsl | 13 +++ assets/shaders/Gui_FS.glsl | 11 +++ assets/shaders/Gui_VS.glsl | 12 +++ assets/shaders/Quad_FS.glsl | 11 +++ assets/shaders/Quad_VS.glsl | 12 +++ assets/sounds/calm1.ogg | Bin 0 -> 2530812 bytes assets/sounds/calm2.ogg | Bin 0 -> 1976731 bytes assets/sounds/calm3.ogg | Bin 0 -> 2232651 bytes assets/sounds/hal1.ogg | Bin 0 -> 1972217 bytes assets/sounds/hal2.ogg | Bin 0 -> 1754429 bytes assets/sounds/hal3.ogg | Bin 0 -> 1923269 bytes assets/sounds/hal4.ogg | Bin 0 -> 2558252 bytes assets/sounds/nuance1.ogg | Bin 0 -> 156322 bytes assets/sounds/nuance2.ogg | Bin 0 -> 219029 bytes assets/sounds/piano1.ogg | Bin 0 -> 542805 bytes assets/sounds/piano2.ogg | Bin 0 -> 824333 bytes assets/sounds/piano3.ogg | Bin 0 -> 2665984 bytes assets/textures/blocks/bricks.png | Bin 0 -> 506 bytes assets/textures/blocks/cactus.png | Bin 0 -> 466 bytes assets/textures/blocks/cactus_top.png | Bin 0 -> 314 bytes assets/textures/blocks/chiseled_stone_bricks.png | Bin 0 -> 423 bytes assets/textures/blocks/cobblestone.png | Bin 0 -> 586 bytes assets/textures/blocks/cracked_stone_bricks.png | Bin 0 -> 495 bytes assets/textures/blocks/dirt.png | Bin 0 -> 371 bytes assets/textures/blocks/glass.png | Bin 0 -> 236 bytes assets/textures/blocks/grass_side.png | Bin 0 -> 385 bytes assets/textures/blocks/grass_top.png | Bin 0 -> 242 bytes assets/textures/blocks/leaves.png | Bin 0 -> 1083 bytes assets/textures/blocks/mossy_cobblestone.png | Bin 0 -> 677 bytes assets/textures/blocks/mossy_stone_bricks.png | Bin 0 -> 585 bytes assets/textures/blocks/plank.png | Bin 0 -> 247 bytes assets/textures/blocks/sand.png | Bin 0 -> 891 bytes assets/textures/blocks/sandstone_bottom.png | Bin 0 -> 258 bytes assets/textures/blocks/sandstone_side.png | Bin 0 -> 262 bytes assets/textures/blocks/sandstone_top.png | Bin 0 -> 237 bytes assets/textures/blocks/stone.png | Bin 0 -> 533 bytes assets/textures/blocks/stone_bricks.png | Bin 0 -> 425 bytes assets/textures/blocks/water.png | Bin 0 -> 210 bytes assets/textures/blocks/wood_side.png | Bin 0 -> 592 bytes assets/textures/blocks/wood_top.png | Bin 0 -> 496 bytes assets/textures/blocks/wool.png | Bin 0 -> 447 bytes assets/textures/font/yugothic.png | Bin 0 -> 38772 bytes assets/textures/gui/crosshair.png | Bin 0 -> 280 bytes assets/textures/gui/heart_empty.png | Bin 0 -> 316 bytes assets/textures/gui/heart_full.png | Bin 0 -> 295 bytes assets/textures/gui/heart_half.png | Bin 0 -> 314 bytes assets/textures/gui/icon.png | Bin 0 -> 51619 bytes 92 files changed, 840 insertions(+) create mode 100755 assets/blocks/blocks.json create mode 100755 assets/blocks/bricks.json create mode 100755 assets/blocks/cactus.json create mode 100755 assets/blocks/chiseled_stone_bricks.json create mode 100755 assets/blocks/cobblestone.json create mode 100755 assets/blocks/cracked_stone_bricks.json create mode 100755 assets/blocks/dirt.json create mode 100755 assets/blocks/glass.json create mode 100755 assets/blocks/grass.json create mode 100755 assets/blocks/leaves.json create mode 100755 assets/blocks/mossy_cobblestone.json create mode 100755 assets/blocks/mossy_stone_bricks.json create mode 100755 assets/blocks/plank.json create mode 100755 assets/blocks/sand.json create mode 100755 assets/blocks/sandstone.json create mode 100755 assets/blocks/stone.json create mode 100755 assets/blocks/stone_bricks.json create mode 100755 assets/blocks/water.json create mode 100755 assets/blocks/wood.json create mode 100755 assets/blocks/wool.json create mode 100755 assets/font/yugothic.fnt create mode 100755 assets/gen/biome_data.json create mode 100755 assets/gen/biomes/beach.json create mode 100755 assets/gen/biomes/desert.json create mode 100755 assets/gen/biomes/forest.json create mode 100755 assets/gen/biomes/grassland.json create mode 100755 assets/gen/biomes/ice.json create mode 100755 assets/gen/biomes/jungle.json create mode 100755 assets/gen/biomes/mountain.json create mode 100755 assets/gen/biomes/ocean.json create mode 100755 assets/gen/biomes/rainforest.json create mode 100755 assets/gen/biomes/river.json create mode 100755 assets/gen/biomes/savanna.json create mode 100755 assets/gen/biomes/taiga.json create mode 100755 assets/gen/biomes/tundra.json create mode 100755 assets/gen/biomes/woodland.json create mode 100755 assets/gen/decorations/cactus.json create mode 100755 assets/gen/decorations/pine.json create mode 100755 assets/gen/decorations/tree.json create mode 100755 assets/models/cactus.json create mode 100755 assets/models/default.json create mode 100755 assets/models/water.json create mode 100755 assets/shaders/Chunk_FS.glsl create mode 100755 assets/shaders/Chunk_VS.glsl create mode 100755 assets/shaders/Font_FS.glsl create mode 100755 assets/shaders/Font_VS.glsl create mode 100755 assets/shaders/Gui_FS.glsl create mode 100755 assets/shaders/Gui_VS.glsl create mode 100755 assets/shaders/Quad_FS.glsl create mode 100755 assets/shaders/Quad_VS.glsl create mode 100755 assets/sounds/calm1.ogg create mode 100755 assets/sounds/calm2.ogg create mode 100755 assets/sounds/calm3.ogg create mode 100755 assets/sounds/hal1.ogg create mode 100755 assets/sounds/hal2.ogg create mode 100755 assets/sounds/hal3.ogg create mode 100755 assets/sounds/hal4.ogg create mode 100755 assets/sounds/nuance1.ogg create mode 100755 assets/sounds/nuance2.ogg create mode 100755 assets/sounds/piano1.ogg create mode 100755 assets/sounds/piano2.ogg create mode 100755 assets/sounds/piano3.ogg create mode 100755 assets/textures/blocks/bricks.png create mode 100755 assets/textures/blocks/cactus.png create mode 100755 assets/textures/blocks/cactus_top.png create mode 100755 assets/textures/blocks/chiseled_stone_bricks.png create mode 100755 assets/textures/blocks/cobblestone.png create mode 100755 assets/textures/blocks/cracked_stone_bricks.png create mode 100755 assets/textures/blocks/dirt.png create mode 100755 assets/textures/blocks/glass.png create mode 100755 assets/textures/blocks/grass_side.png create mode 100755 assets/textures/blocks/grass_top.png create mode 100755 assets/textures/blocks/leaves.png create mode 100755 assets/textures/blocks/mossy_cobblestone.png create mode 100755 assets/textures/blocks/mossy_stone_bricks.png create mode 100755 assets/textures/blocks/plank.png create mode 100755 assets/textures/blocks/sand.png create mode 100755 assets/textures/blocks/sandstone_bottom.png create mode 100755 assets/textures/blocks/sandstone_side.png create mode 100755 assets/textures/blocks/sandstone_top.png create mode 100755 assets/textures/blocks/stone.png create mode 100755 assets/textures/blocks/stone_bricks.png create mode 100755 assets/textures/blocks/water.png create mode 100755 assets/textures/blocks/wood_side.png create mode 100755 assets/textures/blocks/wood_top.png create mode 100755 assets/textures/blocks/wool.png create mode 100755 assets/textures/font/yugothic.png create mode 100755 assets/textures/gui/crosshair.png create mode 100755 assets/textures/gui/heart_empty.png create mode 100755 assets/textures/gui/heart_full.png create mode 100755 assets/textures/gui/heart_half.png create mode 100755 assets/textures/gui/icon.png (limited to 'assets') diff --git a/assets/blocks/blocks.json b/assets/blocks/blocks.json new file mode 100755 index 0000000..aea0c74 --- /dev/null +++ b/assets/blocks/blocks.json @@ -0,0 +1,21 @@ +{ + "0": "grass", + "1": "dirt", + "2": "stone", + "3": "cobblestone", + "4": "mossy_cobblestone", + "5": "stone_bricks", + "6": "mossy_stone_bricks", + "7": "cracked_stone_bricks", + "8": "chiseled_stone_bricks", + "9": "bricks", + "10": "wood", + "11": "plank", + "12": "leaves", + "13": "sand", + "14": "sandstone", + "15": "cactus", + "16": "glass", + "17": "water", + "18": "wool" +} \ No newline at end of file diff --git a/assets/blocks/bricks.json b/assets/blocks/bricks.json new file mode 100755 index 0000000..5d7f506 --- /dev/null +++ b/assets/blocks/bricks.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "bricks" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/cactus.json b/assets/blocks/cactus.json new file mode 100755 index 0000000..2d63367 --- /dev/null +++ b/assets/blocks/cactus.json @@ -0,0 +1,12 @@ +{ + "model": "cactus", + "texture": "side", + "textures": { + "side": "cactus", + "top": "cactus_top", + "bottom": "cactus_top" + }, + "transparent": false, + "renderNeighbors": true, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/chiseled_stone_bricks.json b/assets/blocks/chiseled_stone_bricks.json new file mode 100755 index 0000000..a4bdb90 --- /dev/null +++ b/assets/blocks/chiseled_stone_bricks.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "chiseled_stone_bricks" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/cobblestone.json b/assets/blocks/cobblestone.json new file mode 100755 index 0000000..02fb6ae --- /dev/null +++ b/assets/blocks/cobblestone.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "cobblestone" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/cracked_stone_bricks.json b/assets/blocks/cracked_stone_bricks.json new file mode 100755 index 0000000..424c38a --- /dev/null +++ b/assets/blocks/cracked_stone_bricks.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "cracked_stone_bricks" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/dirt.json b/assets/blocks/dirt.json new file mode 100755 index 0000000..0b7f530 --- /dev/null +++ b/assets/blocks/dirt.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "dirt" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/glass.json b/assets/blocks/glass.json new file mode 100755 index 0000000..e34c7c3 --- /dev/null +++ b/assets/blocks/glass.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "glass" + }, + "transparent": true, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/grass.json b/assets/blocks/grass.json new file mode 100755 index 0000000..f97d0be --- /dev/null +++ b/assets/blocks/grass.json @@ -0,0 +1,12 @@ +{ + "model": "default", + "texture": "side", + "textures": { + "side": "grass_side", + "top": "grass_top", + "bottom": "dirt" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/leaves.json b/assets/blocks/leaves.json new file mode 100755 index 0000000..4ccde34 --- /dev/null +++ b/assets/blocks/leaves.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "leaves" + }, + "transparent": true, + "renderNeighbors": true, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/mossy_cobblestone.json b/assets/blocks/mossy_cobblestone.json new file mode 100755 index 0000000..081b40e --- /dev/null +++ b/assets/blocks/mossy_cobblestone.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "mossy_cobblestone" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/mossy_stone_bricks.json b/assets/blocks/mossy_stone_bricks.json new file mode 100755 index 0000000..ed73511 --- /dev/null +++ b/assets/blocks/mossy_stone_bricks.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "mossy_stone_bricks" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/plank.json b/assets/blocks/plank.json new file mode 100755 index 0000000..93e197a --- /dev/null +++ b/assets/blocks/plank.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "plank" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/sand.json b/assets/blocks/sand.json new file mode 100755 index 0000000..e1574c5 --- /dev/null +++ b/assets/blocks/sand.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "sand" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/sandstone.json b/assets/blocks/sandstone.json new file mode 100755 index 0000000..e38fec5 --- /dev/null +++ b/assets/blocks/sandstone.json @@ -0,0 +1,12 @@ +{ + "model": "default", + "texture": "side", + "textures": { + "side": "sandstone_side", + "top": "sandstone_top", + "bottom": "sandstone_bottom" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/stone.json b/assets/blocks/stone.json new file mode 100755 index 0000000..f3173af --- /dev/null +++ b/assets/blocks/stone.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "stone" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/stone_bricks.json b/assets/blocks/stone_bricks.json new file mode 100755 index 0000000..ab61078 --- /dev/null +++ b/assets/blocks/stone_bricks.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "stone_bricks" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/water.json b/assets/blocks/water.json new file mode 100755 index 0000000..42afe44 --- /dev/null +++ b/assets/blocks/water.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "water" + }, + "transparent": true, + "renderNeighbors": false, + "placeable": false +} \ No newline at end of file diff --git a/assets/blocks/wood.json b/assets/blocks/wood.json new file mode 100755 index 0000000..62fc90b --- /dev/null +++ b/assets/blocks/wood.json @@ -0,0 +1,12 @@ +{ + "model": "default", + "texture": "side", + "textures": { + "side": "wood_side", + "top": "wood_top", + "bottom": "wood_top" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/blocks/wool.json b/assets/blocks/wool.json new file mode 100755 index 0000000..ef79773 --- /dev/null +++ b/assets/blocks/wool.json @@ -0,0 +1,10 @@ +{ + "model": "default", + "texture": "all", + "textures": { + "face": "wool" + }, + "transparent": false, + "renderNeighbors": false, + "placeable": true +} \ No newline at end of file diff --git a/assets/font/yugothic.fnt b/assets/font/yugothic.fnt new file mode 100755 index 0000000..b7fc274 --- /dev/null +++ b/assets/font/yugothic.fnt @@ -0,0 +1,101 @@ +info face="Yu Gothic UI Regular" size=75 bold=0 italic=0 charset="" unicode=0 stretchH=100 smooth=1 aa=1 padding=5,5,5,5 spacing=-2,-2 +common lineHeight=108 base=81 scaleW=512 scaleH=512 pages=1 packed=0 +page id=0 file="yugothic.png" +chars count=97 +char id=0 x=55 y=0 width=71 height=83 xoffset=2 yoffset=11 xadvance=83 page=0 chnl=0 +char id=10 x=0 y=0 width=0 height=0 xoffset=-5 yoffset=0 xadvance=8 page=0 chnl=0 +char id=32 x=0 y=0 width=0 height=0 xoffset=-5 yoffset=0 xadvance=29 page=0 chnl=0 +char id=33 x=199 y=220 width=19 height=65 xoffset=1 yoffset=22 xadvance=29 page=0 chnl=0 +char id=34 x=279 y=465 width=29 height=27 xoffset=0 yoffset=22 xadvance=37 page=0 chnl=0 +char id=35 x=349 y=350 width=52 height=59 xoffset=-4 yoffset=22 xadvance=52 page=0 chnl=0 +char id=36 x=126 y=0 width=41 height=78 xoffset=0 yoffset=16 xadvance=48 page=0 chnl=0 +char id=37 x=413 y=154 width=67 height=66 xoffset=-3 yoffset=21 xadvance=69 page=0 chnl=0 +char id=38 x=0 y=220 width=65 height=66 xoffset=-1 yoffset=21 xadvance=68 page=0 chnl=0 +char id=39 x=308 y=465 width=17 height=27 xoffset=0 yoffset=22 xadvance=25 page=0 chnl=0 +char id=40 x=167 y=0 width=27 height=76 xoffset=0 yoffset=22 xadvance=31 page=0 chnl=0 +char id=41 x=194 y=0 width=28 height=76 xoffset=-5 yoffset=22 xadvance=31 page=0 chnl=0 +char id=42 x=176 y=465 width=37 height=38 xoffset=-3 yoffset=22 xadvance=39 page=0 chnl=0 +char id=43 x=86 y=465 width=45 height=46 xoffset=3 yoffset=36 xadvance=59 page=0 chnl=0 +char id=44 x=258 y=465 width=21 height=29 xoffset=-4 yoffset=67 xadvance=24 page=0 chnl=0 +char id=45 x=416 y=465 width=31 height=16 xoffset=0 yoffset=52 xadvance=38 page=0 chnl=0 +char id=46 x=397 y=465 width=19 height=19 xoffset=-1 yoffset=68 xadvance=24 page=0 chnl=0 +char id=47 x=327 y=0 width=42 height=73 xoffset=-6 yoffset=22 xadvance=37 page=0 chnl=0 +char id=48 x=332 y=154 width=45 height=66 xoffset=-2 yoffset=21 xadvance=48 page=0 chnl=0 +char id=49 x=479 y=86 width=29 height=65 xoffset=3 yoffset=21 xadvance=48 page=0 chnl=0 +char id=50 x=115 y=220 width=44 height=65 xoffset=-2 yoffset=21 xadvance=48 page=0 chnl=0 +char id=51 x=158 y=154 width=41 height=66 xoffset=-1 yoffset=21 xadvance=48 page=0 chnl=0 +char id=52 x=155 y=350 width=48 height=64 xoffset=-5 yoffset=22 xadvance=48 page=0 chnl=0 +char id=53 x=159 y=220 width=40 height=65 xoffset=1 yoffset=22 xadvance=48 page=0 chnl=0 +char id=54 x=199 y=154 width=44 height=66 xoffset=-1 yoffset=21 xadvance=48 page=0 chnl=0 +char id=55 x=203 y=350 width=44 height=64 xoffset=-2 yoffset=22 xadvance=48 page=0 chnl=0 +char id=56 x=243 y=154 width=45 height=66 xoffset=-2 yoffset=21 xadvance=48 page=0 chnl=0 +char id=57 x=288 y=154 width=44 height=66 xoffset=-2 yoffset=21 xadvance=48 page=0 chnl=0 +char id=58 x=480 y=350 width=19 height=51 xoffset=-1 yoffset=36 xadvance=24 page=0 chnl=0 +char id=59 x=327 y=350 width=22 height=59 xoffset=-4 yoffset=37 xadvance=24 page=0 chnl=0 +char id=60 x=0 y=465 width=43 height=46 xoffset=4 yoffset=35 xadvance=59 page=0 chnl=0 +char id=61 x=213 y=465 width=45 height=32 xoffset=3 yoffset=43 xadvance=59 page=0 chnl=0 +char id=62 x=43 y=465 width=43 height=46 xoffset=4 yoffset=35 xadvance=59 page=0 chnl=0 +char id=63 x=377 y=154 width=36 height=66 xoffset=-1 yoffset=21 xadvance=42 page=0 chnl=0 +char id=64 x=434 y=0 width=70 height=72 xoffset=1 yoffset=21 xadvance=80 page=0 chnl=0 +char id=65 x=218 y=220 width=58 height=64 xoffset=-5 yoffset=22 xadvance=56 page=0 chnl=0 +char id=66 x=276 y=220 width=44 height=64 xoffset=1 yoffset=22 xadvance=51 page=0 chnl=0 +char id=67 x=429 y=86 width=50 height=66 xoffset=-2 yoffset=21 xadvance=54 page=0 chnl=0 +char id=68 x=320 y=220 width=54 height=64 xoffset=1 yoffset=22 xadvance=61 page=0 chnl=0 +char id=69 x=374 y=220 width=39 height=64 xoffset=1 yoffset=22 xadvance=46 page=0 chnl=0 +char id=70 x=413 y=220 width=38 height=64 xoffset=1 yoffset=22 xadvance=45 page=0 chnl=0 +char id=71 x=0 y=154 width=54 height=66 xoffset=-2 yoffset=21 xadvance=59 page=0 chnl=0 +char id=72 x=451 y=220 width=51 height=64 xoffset=1 yoffset=22 xadvance=61 page=0 chnl=0 +char id=73 x=0 y=286 width=18 height=64 xoffset=1 yoffset=22 xadvance=28 page=0 chnl=0 +char id=74 x=480 y=154 width=31 height=65 xoffset=-5 yoffset=22 xadvance=35 page=0 chnl=0 +char id=75 x=18 y=286 width=48 height=64 xoffset=1 yoffset=22 xadvance=52 page=0 chnl=0 +char id=76 x=66 y=286 width=39 height=64 xoffset=1 yoffset=22 xadvance=43 page=0 chnl=0 +char id=77 x=105 y=286 width=65 height=64 xoffset=1 yoffset=22 xadvance=75 page=0 chnl=0 +char id=78 x=170 y=286 width=54 height=64 xoffset=1 yoffset=22 xadvance=64 page=0 chnl=0 +char id=79 x=54 y=154 width=61 height=66 xoffset=-2 yoffset=21 xadvance=65 page=0 chnl=0 +char id=80 x=224 y=286 width=44 height=64 xoffset=1 yoffset=22 xadvance=50 page=0 chnl=0 +char id=81 x=369 y=0 width=65 height=72 xoffset=-2 yoffset=21 xadvance=65 page=0 chnl=0 +char id=82 x=268 y=286 width=49 height=64 xoffset=1 yoffset=22 xadvance=53 page=0 chnl=0 +char id=83 x=115 y=154 width=43 height=66 xoffset=-1 yoffset=21 xadvance=48 page=0 chnl=0 +char id=84 x=317 y=286 width=47 height=64 xoffset=-4 yoffset=22 xadvance=47 page=0 chnl=0 +char id=85 x=65 y=220 width=50 height=65 xoffset=1 yoffset=22 xadvance=60 page=0 chnl=0 +char id=86 x=364 y=286 width=56 height=64 xoffset=-5 yoffset=22 xadvance=55 page=0 chnl=0 +char id=87 x=420 y=286 width=79 height=64 xoffset=-4 yoffset=22 xadvance=78 page=0 chnl=0 +char id=88 x=0 y=350 width=53 height=64 xoffset=-4 yoffset=22 xadvance=52 page=0 chnl=0 +char id=89 x=53 y=350 width=51 height=64 xoffset=-5 yoffset=22 xadvance=49 page=0 chnl=0 +char id=90 x=104 y=350 width=51 height=64 xoffset=-4 yoffset=22 xadvance=51 page=0 chnl=0 +char id=91 x=222 y=0 width=24 height=76 xoffset=2 yoffset=22 xadvance=31 page=0 chnl=0 +char id=92 x=247 y=350 width=47 height=64 xoffset=-3 yoffset=22 xadvance=48 page=0 chnl=0 +char id=93 x=246 y=0 width=25 height=76 xoffset=-4 yoffset=22 xadvance=31 page=0 chnl=0 +char id=94 x=131 y=465 width=45 height=42 xoffset=3 yoffset=21 xadvance=59 page=0 chnl=0 +char id=95 x=447 y=465 width=42 height=15 xoffset=-5 yoffset=82 xadvance=39 page=0 chnl=0 +char id=96 x=325 y=465 width=25 height=23 xoffset=-2 yoffset=18 xadvance=28 page=0 chnl=0 +char id=97 x=401 y=350 width=40 height=51 xoffset=-2 yoffset=36 xadvance=46 page=0 chnl=0 +char id=98 x=0 y=86 width=45 height=68 xoffset=1 yoffset=19 xadvance=52 page=0 chnl=0 +char id=99 x=441 y=350 width=39 height=51 xoffset=-2 yoffset=36 xadvance=43 page=0 chnl=0 +char id=100 x=45 y=86 width=46 height=68 xoffset=-2 yoffset=19 xadvance=52 page=0 chnl=0 +char id=101 x=0 y=414 width=44 height=51 xoffset=-2 yoffset=36 xadvance=47 page=0 chnl=0 +char id=102 x=91 y=86 width=35 height=68 xoffset=-4 yoffset=18 xadvance=31 page=0 chnl=0 +char id=103 x=126 y=86 width=46 height=68 xoffset=-2 yoffset=36 xadvance=52 page=0 chnl=0 +char id=104 x=172 y=86 width=42 height=67 xoffset=1 yoffset=19 xadvance=50 page=0 chnl=0 +char id=105 x=214 y=86 width=19 height=67 xoffset=0 yoffset=19 xadvance=26 page=0 chnl=0 +char id=106 x=16 y=0 width=39 height=85 xoffset=-13 yoffset=19 xadvance=26 page=0 chnl=0 +char id=107 x=233 y=86 width=42 height=67 xoffset=1 yoffset=19 xadvance=45 page=0 chnl=0 +char id=108 x=275 y=86 width=17 height=67 xoffset=1 yoffset=19 xadvance=26 page=0 chnl=0 +char id=109 x=128 y=414 width=64 height=50 xoffset=1 yoffset=36 xadvance=73 page=0 chnl=0 +char id=110 x=192 y=414 width=42 height=50 xoffset=1 yoffset=36 xadvance=50 page=0 chnl=0 +char id=111 x=44 y=414 width=48 height=51 xoffset=-2 yoffset=36 xadvance=52 page=0 chnl=0 +char id=112 x=292 y=86 width=45 height=67 xoffset=1 yoffset=36 xadvance=52 page=0 chnl=0 +char id=113 x=337 y=86 width=46 height=67 xoffset=-2 yoffset=36 xadvance=52 page=0 chnl=0 +char id=114 x=234 y=414 width=30 height=50 xoffset=1 yoffset=36 xadvance=34 page=0 chnl=0 +char id=115 x=92 y=414 width=36 height=51 xoffset=-2 yoffset=36 xadvance=40 page=0 chnl=0 +char id=116 x=294 y=350 width=33 height=60 xoffset=-4 yoffset=27 xadvance=33 page=0 chnl=0 +char id=117 x=264 y=414 width=42 height=50 xoffset=0 yoffset=37 xadvance=50 page=0 chnl=0 +char id=118 x=306 y=414 width=46 height=49 xoffset=-5 yoffset=37 xadvance=44 page=0 chnl=0 +char id=119 x=352 y=414 width=64 height=49 xoffset=-5 yoffset=37 xadvance=62 page=0 chnl=0 +char id=120 x=416 y=414 width=43 height=49 xoffset=-4 yoffset=37 xadvance=42 page=0 chnl=0 +char id=121 x=383 y=86 width=46 height=67 xoffset=-5 yoffset=37 xadvance=44 page=0 chnl=0 +char id=122 x=459 y=414 width=42 height=49 xoffset=-4 yoffset=37 xadvance=42 page=0 chnl=0 +char id=123 x=271 y=0 width=28 height=76 xoffset=-2 yoffset=22 xadvance=31 page=0 chnl=0 +char id=124 x=0 y=0 width=16 height=86 xoffset=1 yoffset=18 xadvance=26 page=0 chnl=0 +char id=125 x=299 y=0 width=28 height=76 xoffset=-3 yoffset=22 xadvance=31 page=0 chnl=0 +char id=126 x=350 y=465 width=47 height=22 xoffset=2 yoffset=48 xadvance=59 page=0 chnl=0 diff --git a/assets/gen/biome_data.json b/assets/gen/biome_data.json new file mode 100755 index 0000000..e0c530b --- /dev/null +++ b/assets/gen/biome_data.json @@ -0,0 +1,15 @@ +{ + "table": [ + [ "ICE", "TUNDRA", "GRASSLAND", "DESERT", "DESERT", "DESERT" ], + [ "ICE", "TUNDRA", "GRASSLAND", "GRASSLAND", "DESERT", "DESERT" ], + [ "ICE", "TUNDRA", "WOODLAND", "WOODLAND", "SAVANNA", "SAVANNA" ], + [ "ICE", "TUNDRA", "TAIGA", "WOODLAND", "SAVANNA", "SAVANNA" ], + [ "ICE", "TUNDRA", "TAIGA", "FOREST", "JUNGLE", "JUNGLE" ], + [ "ICE", "TUNDRA", "TAIGA", "TAIGA", "JUNGLE", "JUNGLE" ] + ], + + "heat": [0.05, 0.18, 0.4, 0.6, 0.8], + + "moisture": [0.2, 0.3, 0.5, 0.6, 0.7], + +} \ No newline at end of file diff --git a/assets/gen/biomes/beach.json b/assets/gen/biomes/beach.json new file mode 100755 index 0000000..472b955 --- /dev/null +++ b/assets/gen/biomes/beach.json @@ -0,0 +1,8 @@ +{ + "name":"RIVER", + "top_block": 13, + "bottom_block": 13, + "roughness": 0.2, + "scale": 0.8, + "exp": 1.3 +} \ No newline at end of file diff --git a/assets/gen/biomes/desert.json b/assets/gen/biomes/desert.json new file mode 100755 index 0000000..cda9d73 --- /dev/null +++ b/assets/gen/biomes/desert.json @@ -0,0 +1,11 @@ +{ + "name":"DESERT", + "top_block": 13, + "bottom_block": 13, + "roughness": 0.6, + "scale": 0.6, + "exp": 1.2, + "decorations": { + "cactus": "0.005" + } +} \ No newline at end of file diff --git a/assets/gen/biomes/forest.json b/assets/gen/biomes/forest.json new file mode 100755 index 0000000..1eb1371 --- /dev/null +++ b/assets/gen/biomes/forest.json @@ -0,0 +1,11 @@ +{ + "name":"GRASSLAND", + "top_block": 0, + "bottom_block": 1, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0, + "decorations": { + "tree": "0.009" + } +} \ No newline at end of file diff --git a/assets/gen/biomes/grassland.json b/assets/gen/biomes/grassland.json new file mode 100755 index 0000000..a00412d --- /dev/null +++ b/assets/gen/biomes/grassland.json @@ -0,0 +1,11 @@ +{ + "name":"GRASSLAND", + "top_block": 0, + "bottom_block": 1, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0, + "decorations": { + "tree": "0.0005" + } +} \ No newline at end of file diff --git a/assets/gen/biomes/ice.json b/assets/gen/biomes/ice.json new file mode 100755 index 0000000..88513d1 --- /dev/null +++ b/assets/gen/biomes/ice.json @@ -0,0 +1,8 @@ +{ + "name":"ICE", + "top_block": 16, + "bottom_block": 16, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0, +} \ No newline at end of file diff --git a/assets/gen/biomes/jungle.json b/assets/gen/biomes/jungle.json new file mode 100755 index 0000000..c4d4164 --- /dev/null +++ b/assets/gen/biomes/jungle.json @@ -0,0 +1,11 @@ +{ + "name":"JUNGLE", + "top_block": 0, + "bottom_block": 1, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0, + "decorations": { + "tree": "0.01" + } +} \ No newline at end of file diff --git a/assets/gen/biomes/mountain.json b/assets/gen/biomes/mountain.json new file mode 100755 index 0000000..a5321ac --- /dev/null +++ b/assets/gen/biomes/mountain.json @@ -0,0 +1,8 @@ +{ + "name":"MOUNTAIN", + "top_block": 16, + "bottom_block": 2, + "roughness": 2.0, + "scale": 1.2, + "exp": 1.0, +} \ No newline at end of file diff --git a/assets/gen/biomes/ocean.json b/assets/gen/biomes/ocean.json new file mode 100755 index 0000000..79fb79f --- /dev/null +++ b/assets/gen/biomes/ocean.json @@ -0,0 +1,8 @@ +{ + "name":"OCEAN", + "top_block": 13, + "bottom_block": 13, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0 +} \ No newline at end of file diff --git a/assets/gen/biomes/rainforest.json b/assets/gen/biomes/rainforest.json new file mode 100755 index 0000000..ec13988 --- /dev/null +++ b/assets/gen/biomes/rainforest.json @@ -0,0 +1,11 @@ +{ + "name":"RAINFOREST", + "top_block": 0, + "bottom_block": 1, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0, + "decorations": { + "tree": "0.009" + } +} \ No newline at end of file diff --git a/assets/gen/biomes/river.json b/assets/gen/biomes/river.json new file mode 100755 index 0000000..8f612d1 --- /dev/null +++ b/assets/gen/biomes/river.json @@ -0,0 +1,8 @@ +{ + "name":"RIVER", + "top_block": 13, + "bottom_block": 13, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0 +} \ No newline at end of file diff --git a/assets/gen/biomes/savanna.json b/assets/gen/biomes/savanna.json new file mode 100755 index 0000000..26c5309 --- /dev/null +++ b/assets/gen/biomes/savanna.json @@ -0,0 +1,11 @@ +{ + "name":"SAVANNA", + "top_block": 0, + "bottom_block": 1, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0, + "decorations": { + "tree": "0.001" + } +} \ No newline at end of file diff --git a/assets/gen/biomes/taiga.json b/assets/gen/biomes/taiga.json new file mode 100755 index 0000000..4efbec1 --- /dev/null +++ b/assets/gen/biomes/taiga.json @@ -0,0 +1,11 @@ +{ + "name":"TAIGA", + "top_block": 18, + "bottom_block": 1, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0, + "decorations": { + "pine": "0.006" + } +} \ No newline at end of file diff --git a/assets/gen/biomes/tundra.json b/assets/gen/biomes/tundra.json new file mode 100755 index 0000000..2e01b80 --- /dev/null +++ b/assets/gen/biomes/tundra.json @@ -0,0 +1,11 @@ +{ + "name":"TUNDRA", + "top_block": 16, + "bottom_block": 2, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0, + "decorations": { + "pine": "0.0005" + } +} \ No newline at end of file diff --git a/assets/gen/biomes/woodland.json b/assets/gen/biomes/woodland.json new file mode 100755 index 0000000..11649e0 --- /dev/null +++ b/assets/gen/biomes/woodland.json @@ -0,0 +1,11 @@ +{ + "name":"GRASSLAND", + "top_block": 0, + "bottom_block": 1, + "roughness": 1.0, + "scale": 1.0, + "exp": 1.0, + "decorations": { + "tree": "0.0007" + } +} \ No newline at end of file diff --git a/assets/gen/decorations/cactus.json b/assets/gen/decorations/cactus.json new file mode 100755 index 0000000..c0c629f --- /dev/null +++ b/assets/gen/decorations/cactus.json @@ -0,0 +1,9 @@ +{ + "blocks": { + "15": [ + [0,0,0], + [0,1,0], + [0,2,0], + ], + }, +} \ No newline at end of file diff --git a/assets/gen/decorations/pine.json b/assets/gen/decorations/pine.json new file mode 100755 index 0000000..ff3bd86 --- /dev/null +++ b/assets/gen/decorations/pine.json @@ -0,0 +1,24 @@ +{ + "blocks": { + "10": [ + [0,0,0], + [0,1,0], + [0,2,0], + ], + "12": [ + [-1,2,-1], + [-1,2,0], + [-1,2,1], + [0,2,-1], + [0,2,1], + [1,2,-1], + [1,2,0], + [1,2,1], + [1,3,0], + [-1,3,0], + [0,3,1], + [0,3,-1], + [0,3,0], + ], + }, +} \ No newline at end of file diff --git a/assets/gen/decorations/tree.json b/assets/gen/decorations/tree.json new file mode 100755 index 0000000..ff3bd86 --- /dev/null +++ b/assets/gen/decorations/tree.json @@ -0,0 +1,24 @@ +{ + "blocks": { + "10": [ + [0,0,0], + [0,1,0], + [0,2,0], + ], + "12": [ + [-1,2,-1], + [-1,2,0], + [-1,2,1], + [0,2,-1], + [0,2,1], + [1,2,-1], + [1,2,0], + [1,2,1], + [1,3,0], + [-1,3,0], + [0,3,1], + [0,3,-1], + [0,3,0], + ], + }, +} \ No newline at end of file diff --git a/assets/models/cactus.json b/assets/models/cactus.json new file mode 100755 index 0000000..4eb6b84 --- /dev/null +++ b/assets/models/cactus.json @@ -0,0 +1,55 @@ +{ + "PX_POS":[ + [0.4,0.5,0.4], + [0.4,-0.5,0.4], + [0.4,-0.5,-0.4], + [0.4,-0.5,-0.4], + [0.4,0.5,-0.4], + [0.4,0.5,0.4], + ], + + "NX_POS":[ + [-0.4,0.5,-0.4], + [-0.4,-0.5,-0.4], + [-0.4,-0.5,0.4], + [-0.4,-0.5,0.4], + [-0.4,0.5,0.4], + [-0.4,0.5,-0.4], + ], + + "PY_POS":[ + [0.4,0.5,-0.4], + [-0.4,0.5,-0.4], + [-0.4,0.5,0.4], + [-0.4,0.5,0.4], + [0.4,0.5,0.4], + [0.4,0.5,-0.4], + ], + + "NY_POS":[ + [-0.4,-0.5,0.4], + [-0.4,-0.5,-0.4], + [0.4,-0.5,-0.4], + [0.4,-0.5,-0.4], + [0.4,-0.5,0.4], + [-0.4,-0.5,0.4], + ], + + "PZ_POS":[ + [-0.4,0.5,0.4], + [-0.4,-0.5,0.4], + [0.4,-0.5,0.4], + [0.4,-0.5,0.4], + [0.4,0.5,0.4], + [-0.4,0.5,0.4], + ], + + "NZ_POS":[ + [0.4,0.5,-0.4], + [0.4,-0.5,-0.4], + [-0.4,-0.5,-0.4], + [-0.4,-0.5,-0.4], + [-0.4,0.5,-0.4], + [0.4,0.5,-0.4], + ] +} \ No newline at end of file diff --git a/assets/models/default.json b/assets/models/default.json new file mode 100755 index 0000000..7c7fd56 --- /dev/null +++ b/assets/models/default.json @@ -0,0 +1,55 @@ +{ + "PX_POS":[ + [0.5,0.5,0.5], + [0.5,-0.5,0.5], + [0.5,-0.5,-0.5], + [0.5,-0.5,-0.5], + [0.5,0.5,-0.5], + [0.5,0.5,0.5], + ], + + "NX_POS":[ + [-0.5,0.5,-0.5], + [-0.5,-0.5,-0.5], + [-0.5,-0.5,0.5], + [-0.5,-0.5,0.5], + [-0.5,0.5,0.5], + [-0.5,0.5,-0.5], + ], + + "PY_POS":[ + [0.5,0.5,-0.5], + [-0.5,0.5,-0.5], + [-0.5,0.5,0.5], + [-0.5,0.5,0.5], + [0.5,0.5,0.5], + [0.5,0.5,-0.5], + ], + + "NY_POS":[ + [-0.5,-0.5,0.5], + [-0.5,-0.5,-0.5], + [0.5,-0.5,-0.5], + [0.5,-0.5,-0.5], + [0.5,-0.5,0.5], + [-0.5,-0.5,0.5], + ], + + "PZ_POS":[ + [-0.5,0.5,0.5], + [-0.5,-0.5,0.5], + [0.5,-0.5,0.5], + [0.5,-0.5,0.5], + [0.5,0.5,0.5], + [-0.5,0.5,0.5], + ], + + "NZ_POS":[ + [0.5,0.5,-0.5], + [0.5,-0.5,-0.5], + [-0.5,-0.5,-0.5], + [-0.5,-0.5,-0.5], + [-0.5,0.5,-0.5], + [0.5,0.5,-0.5], + ] +} \ No newline at end of file diff --git a/assets/models/water.json b/assets/models/water.json new file mode 100755 index 0000000..3abd497 --- /dev/null +++ b/assets/models/water.json @@ -0,0 +1,55 @@ +{ + "PX_POS":[ + [0.5,0.4,0.5], + [0.5,-0.5,0.5], + [0.5,-0.5,-0.5], + [0.5,-0.5,-0.5], + [0.5,0.4,-0.5], + [0.5,0.4,0.5], + ], + + "NX_POS":[ + [-0.5,0.4,-0.5], + [-0.5,-0.5,-0.5], + [-0.5,-0.5,0.5], + [-0.5,-0.5,0.5], + [-0.5,0.4,0.5], + [-0.5,0.4,-0.5], + ], + + "PY_POS":[ + [0.5,0.4,-0.5], + [-0.5,0.4,-0.5], + [-0.5,0.4,0.5], + [-0.5,0.4,0.5], + [0.5,0.4,0.5], + [0.5,0.4,-0.5], + ], + + "NY_POS":[ + [-0.5,-0.5,0.5], + [-0.5,-0.5,-0.5], + [0.5,-0.5,-0.5], + [0.5,-0.5,-0.5], + [0.5,-0.5,0.5], + [-0.5,-0.5,0.5], + ], + + "PZ_POS":[ + [-0.5,0.4,0.5], + [-0.5,-0.5,0.5], + [0.5,-0.5,0.5], + [0.5,-0.5,0.5], + [0.5,0.4,0.5], + [-0.5,0.4,0.5], + ], + + "NZ_POS":[ + [0.5,0.4,-0.5], + [0.5,-0.5,-0.5], + [-0.5,-0.5,-0.5], + [-0.5,-0.5,-0.5], + [-0.5,0.4,-0.5], + [0.5,0.4,-0.5], + ] +} \ No newline at end of file diff --git a/assets/shaders/Chunk_FS.glsl b/assets/shaders/Chunk_FS.glsl new file mode 100755 index 0000000..fa1d5f6 --- /dev/null +++ b/assets/shaders/Chunk_FS.glsl @@ -0,0 +1,22 @@ +#version 130 +#extension GL_EXT_texture_array : enable + +in vec2 pass_textureCoordinates; +in float visibility; +in float pass_layer; +in float pass_baseLightingValue; + +out vec4 out_Color; + +uniform sampler2DArray modelTexture; +uniform vec3 tint; +uniform vec3 skyColor; + +void main(void){ + vec4 textureColour = texture2DArray(modelTexture,vec3(pass_textureCoordinates, pass_layer)); + if(textureColour.a<0.5) discard; + out_Color = textureColour; + out_Color.rgb += tint.xyz; + out_Color.rgb *= pass_baseLightingValue; + out_Color = mix(vec4(skyColor.x,skyColor.y,skyColor.z,1.0),out_Color, visibility); +} \ No newline at end of file diff --git a/assets/shaders/Chunk_VS.glsl b/assets/shaders/Chunk_VS.glsl new file mode 100755 index 0000000..6c5e3dc --- /dev/null +++ b/assets/shaders/Chunk_VS.glsl @@ -0,0 +1,35 @@ +#version 130 + +in vec3 position; +in vec2 textureCoordinates; +in float baseLightingValue; +in float layer; + +out vec2 pass_textureCoordinates; +out float pass_baseLightingValue; +out float pass_layer; +out float visibility; + +uniform mat4 transformationMatrix; +uniform mat4 projectionMatrix; +uniform mat4 viewMatrix; +uniform vec3 playerPosition; +uniform int renderDistance; + +const float density = 0.5; +const float gradient = 1.5; + +void main(void){ + vec4 worldPosition = transformationMatrix * vec4(position,1.0); + gl_Position = projectionMatrix * viewMatrix * worldPosition; + pass_textureCoordinates = textureCoordinates; + pass_layer = layer; + pass_baseLightingValue = baseLightingValue; + + float distance = sqrt(pow(worldPosition.x - playerPosition.x, 2)+ pow(worldPosition.z - playerPosition.z,2)); + visibility = 1; + if(distance / 16 > renderDistance-2){ + visibility = 1-(distance - (16*(renderDistance-2)))/16.0; + } + visibility = clamp(visibility,0.0,1.0); +} diff --git a/assets/shaders/Font_FS.glsl b/assets/shaders/Font_FS.glsl new file mode 100755 index 0000000..2b6f33b --- /dev/null +++ b/assets/shaders/Font_FS.glsl @@ -0,0 +1,28 @@ +#version 330 + +in vec2 pass_textureCoords; + +out vec4 out_color; + +uniform vec3 color; +uniform sampler2D fontAtlas; + +const float width = 0.5; +const float edge = 0.1; + +const float borderWidth = 0.0; +const float borderEdge = 0.5; + +const vec2 offset = vec2(0, 0.0); + +const vec3 outlineColour = vec3(1.0,0.0,0.0); + +void main(void){ + float distance = 1.0 - texture(fontAtlas, pass_textureCoords).a; + float alpha = 1.0 - smoothstep(width, width + edge, distance); + float distance2 = 1.0 - texture(fontAtlas, pass_textureCoords + offset).a; + float outlineAlpha = 1.0 - smoothstep(borderWidth, borderWidth + borderEdge, distance2); + float overallAlpha = alpha + (1.0 - alpha) * outlineAlpha; + vec3 overallColor = mix(outlineColour, color, alpha / overallAlpha); + out_color = vec4(overallColor, overallAlpha); +} diff --git a/assets/shaders/Font_VS.glsl b/assets/shaders/Font_VS.glsl new file mode 100755 index 0000000..400061e --- /dev/null +++ b/assets/shaders/Font_VS.glsl @@ -0,0 +1,13 @@ +#version 330 + +in vec2 position; +in vec2 textureCoords; + +out vec2 pass_textureCoords; + +uniform vec2 translation; + +void main(void){ + gl_Position = vec4(position + translation * vec2(2.0, -2.0), 0.0, 1.0); + pass_textureCoords = textureCoords; +} diff --git a/assets/shaders/Gui_FS.glsl b/assets/shaders/Gui_FS.glsl new file mode 100755 index 0000000..a9fc342 --- /dev/null +++ b/assets/shaders/Gui_FS.glsl @@ -0,0 +1,11 @@ +#version 140 + +in vec2 textureCoords; + +out vec4 out_Color; + +uniform sampler2D guiTexture; + +void main(void){ + out_Color = texture(guiTexture,vec2(textureCoords.x, textureCoords.y)); +} diff --git a/assets/shaders/Gui_VS.glsl b/assets/shaders/Gui_VS.glsl new file mode 100755 index 0000000..0bd6d2c --- /dev/null +++ b/assets/shaders/Gui_VS.glsl @@ -0,0 +1,12 @@ +#version 140 + +in vec2 position; + +out vec2 textureCoords; + +uniform mat4 transformationMatrix; + +void main(void){ + gl_Position = transformationMatrix * vec4(position.x , position.y, 0.0, 1.0); + textureCoords = vec2((position.x+1.0)/2.0, 1 - (position.y+1.0)/2.0); +} diff --git a/assets/shaders/Quad_FS.glsl b/assets/shaders/Quad_FS.glsl new file mode 100755 index 0000000..b1f17b3 --- /dev/null +++ b/assets/shaders/Quad_FS.glsl @@ -0,0 +1,11 @@ +#version 140 + +in vec2 textureCoords; + +out vec4 out_Color; + +uniform vec4 color; + +void main(void){ + out_Color = color; +} diff --git a/assets/shaders/Quad_VS.glsl b/assets/shaders/Quad_VS.glsl new file mode 100755 index 0000000..0bd6d2c --- /dev/null +++ b/assets/shaders/Quad_VS.glsl @@ -0,0 +1,12 @@ +#version 140 + +in vec2 position; + +out vec2 textureCoords; + +uniform mat4 transformationMatrix; + +void main(void){ + gl_Position = transformationMatrix * vec4(position.x , position.y, 0.0, 1.0); + textureCoords = vec2((position.x+1.0)/2.0, 1 - (position.y+1.0)/2.0); +} diff --git a/assets/sounds/calm1.ogg b/assets/sounds/calm1.ogg new file mode 100755 index 0000000..e76b317 Binary files /dev/null and b/assets/sounds/calm1.ogg differ diff --git a/assets/sounds/calm2.ogg b/assets/sounds/calm2.ogg new file mode 100755 index 0000000..b02df7b Binary files /dev/null and b/assets/sounds/calm2.ogg differ diff --git a/assets/sounds/calm3.ogg b/assets/sounds/calm3.ogg new file mode 100755 index 0000000..a4cfafe Binary files /dev/null and b/assets/sounds/calm3.ogg differ diff --git a/assets/sounds/hal1.ogg b/assets/sounds/hal1.ogg new file mode 100755 index 0000000..bcbe583 Binary files /dev/null and b/assets/sounds/hal1.ogg differ diff --git a/assets/sounds/hal2.ogg b/assets/sounds/hal2.ogg new file mode 100755 index 0000000..3ea6b6f Binary files /dev/null and b/assets/sounds/hal2.ogg differ diff --git a/assets/sounds/hal3.ogg b/assets/sounds/hal3.ogg new file mode 100755 index 0000000..6f8984f Binary files /dev/null and b/assets/sounds/hal3.ogg differ diff --git a/assets/sounds/hal4.ogg b/assets/sounds/hal4.ogg new file mode 100755 index 0000000..e3f8dbf Binary files /dev/null and b/assets/sounds/hal4.ogg differ diff --git a/assets/sounds/nuance1.ogg b/assets/sounds/nuance1.ogg new file mode 100755 index 0000000..853e890 Binary files /dev/null and b/assets/sounds/nuance1.ogg differ diff --git a/assets/sounds/nuance2.ogg b/assets/sounds/nuance2.ogg new file mode 100755 index 0000000..d4942a1 Binary files /dev/null and b/assets/sounds/nuance2.ogg differ diff --git a/assets/sounds/piano1.ogg b/assets/sounds/piano1.ogg new file mode 100755 index 0000000..4c72549 Binary files /dev/null and b/assets/sounds/piano1.ogg differ diff --git a/assets/sounds/piano2.ogg b/assets/sounds/piano2.ogg new file mode 100755 index 0000000..ce138e7 Binary files /dev/null and b/assets/sounds/piano2.ogg differ diff --git a/assets/sounds/piano3.ogg b/assets/sounds/piano3.ogg new file mode 100755 index 0000000..0b91992 Binary files /dev/null and b/assets/sounds/piano3.ogg differ diff --git a/assets/textures/blocks/bricks.png b/assets/textures/blocks/bricks.png new file mode 100755 index 0000000..12032c7 Binary files /dev/null and b/assets/textures/blocks/bricks.png differ diff --git a/assets/textures/blocks/cactus.png b/assets/textures/blocks/cactus.png new file mode 100755 index 0000000..aacd93d Binary files /dev/null and b/assets/textures/blocks/cactus.png differ diff --git a/assets/textures/blocks/cactus_top.png b/assets/textures/blocks/cactus_top.png new file mode 100755 index 0000000..b80cf44 Binary files /dev/null and b/assets/textures/blocks/cactus_top.png differ diff --git a/assets/textures/blocks/chiseled_stone_bricks.png b/assets/textures/blocks/chiseled_stone_bricks.png new file mode 100755 index 0000000..a4b878d Binary files /dev/null and b/assets/textures/blocks/chiseled_stone_bricks.png differ diff --git a/assets/textures/blocks/cobblestone.png b/assets/textures/blocks/cobblestone.png new file mode 100755 index 0000000..73639bc Binary files /dev/null and b/assets/textures/blocks/cobblestone.png differ diff --git a/assets/textures/blocks/cracked_stone_bricks.png b/assets/textures/blocks/cracked_stone_bricks.png new file mode 100755 index 0000000..58db38a Binary files /dev/null and b/assets/textures/blocks/cracked_stone_bricks.png differ diff --git a/assets/textures/blocks/dirt.png b/assets/textures/blocks/dirt.png new file mode 100755 index 0000000..30e57cd Binary files /dev/null and b/assets/textures/blocks/dirt.png differ diff --git a/assets/textures/blocks/glass.png b/assets/textures/blocks/glass.png new file mode 100755 index 0000000..7446d20 Binary files /dev/null and b/assets/textures/blocks/glass.png differ diff --git a/assets/textures/blocks/grass_side.png b/assets/textures/blocks/grass_side.png new file mode 100755 index 0000000..e90fbac Binary files /dev/null and b/assets/textures/blocks/grass_side.png differ diff --git a/assets/textures/blocks/grass_top.png b/assets/textures/blocks/grass_top.png new file mode 100755 index 0000000..0325b9a Binary files /dev/null and b/assets/textures/blocks/grass_top.png differ diff --git a/assets/textures/blocks/leaves.png b/assets/textures/blocks/leaves.png new file mode 100755 index 0000000..14c4bcf Binary files /dev/null and b/assets/textures/blocks/leaves.png differ diff --git a/assets/textures/blocks/mossy_cobblestone.png b/assets/textures/blocks/mossy_cobblestone.png new file mode 100755 index 0000000..4d7d724 Binary files /dev/null and b/assets/textures/blocks/mossy_cobblestone.png differ diff --git a/assets/textures/blocks/mossy_stone_bricks.png b/assets/textures/blocks/mossy_stone_bricks.png new file mode 100755 index 0000000..c54918c Binary files /dev/null and b/assets/textures/blocks/mossy_stone_bricks.png differ diff --git a/assets/textures/blocks/plank.png b/assets/textures/blocks/plank.png new file mode 100755 index 0000000..b210f04 Binary files /dev/null and b/assets/textures/blocks/plank.png differ diff --git a/assets/textures/blocks/sand.png b/assets/textures/blocks/sand.png new file mode 100755 index 0000000..d840293 Binary files /dev/null and b/assets/textures/blocks/sand.png differ diff --git a/assets/textures/blocks/sandstone_bottom.png b/assets/textures/blocks/sandstone_bottom.png new file mode 100755 index 0000000..8ecf00f Binary files /dev/null and b/assets/textures/blocks/sandstone_bottom.png differ diff --git a/assets/textures/blocks/sandstone_side.png b/assets/textures/blocks/sandstone_side.png new file mode 100755 index 0000000..3b15f65 Binary files /dev/null and b/assets/textures/blocks/sandstone_side.png differ diff --git a/assets/textures/blocks/sandstone_top.png b/assets/textures/blocks/sandstone_top.png new file mode 100755 index 0000000..4ba39eb Binary files /dev/null and b/assets/textures/blocks/sandstone_top.png differ diff --git a/assets/textures/blocks/stone.png b/assets/textures/blocks/stone.png new file mode 100755 index 0000000..c988cfc Binary files /dev/null and b/assets/textures/blocks/stone.png differ diff --git a/assets/textures/blocks/stone_bricks.png b/assets/textures/blocks/stone_bricks.png new file mode 100755 index 0000000..ff1e490 Binary files /dev/null and b/assets/textures/blocks/stone_bricks.png differ diff --git a/assets/textures/blocks/water.png b/assets/textures/blocks/water.png new file mode 100755 index 0000000..1991e7b Binary files /dev/null and b/assets/textures/blocks/water.png differ diff --git a/assets/textures/blocks/wood_side.png b/assets/textures/blocks/wood_side.png new file mode 100755 index 0000000..e2da4c5 Binary files /dev/null and b/assets/textures/blocks/wood_side.png differ diff --git a/assets/textures/blocks/wood_top.png b/assets/textures/blocks/wood_top.png new file mode 100755 index 0000000..0615e1a Binary files /dev/null and b/assets/textures/blocks/wood_top.png differ diff --git a/assets/textures/blocks/wool.png b/assets/textures/blocks/wool.png new file mode 100755 index 0000000..0b65f8b Binary files /dev/null and b/assets/textures/blocks/wool.png differ diff --git a/assets/textures/font/yugothic.png b/assets/textures/font/yugothic.png new file mode 100755 index 0000000..cc142b4 Binary files /dev/null and b/assets/textures/font/yugothic.png differ diff --git a/assets/textures/gui/crosshair.png b/assets/textures/gui/crosshair.png new file mode 100755 index 0000000..d9600f7 Binary files /dev/null and b/assets/textures/gui/crosshair.png differ diff --git a/assets/textures/gui/heart_empty.png b/assets/textures/gui/heart_empty.png new file mode 100755 index 0000000..b7447aa Binary files /dev/null and b/assets/textures/gui/heart_empty.png differ diff --git a/assets/textures/gui/heart_full.png b/assets/textures/gui/heart_full.png new file mode 100755 index 0000000..8fe7734 Binary files /dev/null and b/assets/textures/gui/heart_full.png differ diff --git a/assets/textures/gui/heart_half.png b/assets/textures/gui/heart_half.png new file mode 100755 index 0000000..5534cdd Binary files /dev/null and b/assets/textures/gui/heart_half.png differ diff --git a/assets/textures/gui/icon.png b/assets/textures/gui/icon.png new file mode 100755 index 0000000..a9690b9 Binary files /dev/null and b/assets/textures/gui/icon.png differ -- cgit v1.2.3-freya