Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
assets/*
!assets/*.passlist
!assets/*.json
!assets/shaders
cache/
CookedAssets/
saves/
gameconfig.lua
serverconfig.lua
Expand Down
6 changes: 3 additions & 3 deletions assets/2d.passlist
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ passlist "2D"
{
impl "Forward"

output "Output" "ForwardOutput"
output "Output0" "ForwardOutput"
{
clearcolor "Viewer"
}
Expand All @@ -36,8 +36,8 @@ passlist "2D"
Shader "PostProcess.GammaCorrection"
}

input "Input" "ForwardOutput"
output "Output" "Gamma corrected"
input "Input0" "ForwardOutput"
output "Output0" "Gamma corrected"
}

output "Gamma corrected"
Expand Down
6 changes: 3 additions & 3 deletions assets/3d.passlist
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ passlist "Forward Passlist"
pass "ForwardPass"
{
impl "Forward"
output "Output" "ForwardOutput"
output "Output0" "ForwardOutput"
{
clearcolor "Viewer"
}
Expand Down Expand Up @@ -60,8 +60,8 @@ passlist "Forward Passlist"
Shader "PostProcess.GammaCorrection"
}

input "Input" "AtmosphereOutput"
output "Output" "Gamma corrected"
input "Input0" "AtmosphereOutput"
output "Output0" "Gamma corrected"
}

attachmentproxy "Debug draw output" "Gamma corrected"
Expand Down
6 changes: 3 additions & 3 deletions assets/3d_dev.passlist
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ passlist "Forward Passlist"
pass "ForwardPass"
{
impl "Forward"
output "Output" "ForwardOutput"
output "Output0" "ForwardOutput"
{
clearcolor "Viewer"
}
Expand Down Expand Up @@ -60,8 +60,8 @@ passlist "Forward Passlist"
Shader "PostProcess.GammaCorrection"
}

input "Input" "AtmosphereOutput"
output "Output" "Gamma corrected"
input "Input0" "AtmosphereOutput"
output "Output0" "Gamma corrected"
}

attachmentproxy "Debug draw output" "Gamma corrected"
Expand Down
154 changes: 154 additions & 0 deletions assets/assets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
{
"assets": [
{
"input": "blocks.json",
"output": "Blocks",
"method": "Blocks",
"size": 2048
},
{
"method": "CubemapSplitFaces",
"output": "Textures/Skybox/MenuSkybox.dds",
"faces": {
"+x": "PurpleNebulaSkybox/purple_nebula_skybox_right1.png",
"-x": "PurpleNebulaSkybox/purple_nebula_skybox_left2.png",
"+y": "PurpleNebulaSkybox/purple_nebula_skybox_top3.png",
"-y": "PurpleNebulaSkybox/purple_nebula_skybox_bottom4.png",
"+z": "PurpleNebulaSkybox/purple_nebula_skybox_front5.png",
"-z": "PurpleNebulaSkybox/purple_nebula_skybox_back6.png"
},
"sRGB": false
},
{
"input": "skybox-space.png",
"output": "Textures/Skybox/GameSkybox.dds",
"method": "Cubemap"
},
{
"input": "dev/grey.png",
"output": "Textures/Dev/grey.dds",
"method": "Texture"
},
{
"input": "crosshair.png",
"output": "Textures/crosshair.dds",
"method": "Texture"
},
{
"input": "fonts/axaxax bd.otf",
"output": "Fonts/axaxax bd.otf",
"method": "Copy"
},
{
"input": "Player/Idle.fbx",
"output": "Models/Player/Idle.fbx",
"method": "Copy"
},
{
"input": "Player/Running.fbx",
"output": "Models/Player/Running.fbx",
"method": "Copy"
},
{
"input": "Player/Walking.fbx",
"output": "Models/Player/Walking.fbx",
"method": "Copy"
},
{
"input": "Player/Textures/Soldier_AlbedoTransparency.png",
"output": "Models/Player/Textures/Soldier_AlbedoTransparency.dds",
"method": "Texture"
},
{
"input": "Player/Textures/Soldier_AO.png",
"output": "Models/Player/Textures/Soldier_AO.dds",
"method": "Texture",
"type": "Greyscale"
},
{
"input": "Player/Textures/Soldier_MetallicSmoothness.png",
"output": "Models/Player/Textures/Soldier_MetallicSmoothness.dds",
"method": "Texture",
"type": "BiGreyscale",
"channel0": "Red",
"channel1": "Alpha"
},
{
"input": "Player/Textures/Soldier_Normal.png",
"output": "Models/Player/Textures/Soldier_Normal.dds",
"method": "Texture",
"type": "Normal"
},
{
"input": "ship/computer/scifi_computer_1_3.obj",
"output": "Models/ShipComputer/scifi_computer_1_3.obj",
"method": "Copy"
},
{
"input": "ship/computer/digital_displays.png",
"output": "Models/ShipComputer/digital_displays.dds",
"method": "Texture"
},
{
"input": "tree/shapespark-low-poly-plants-kit.gltf",
"output": "Models/Tree/shapespark-low-poly-plants-kit.gltf",
"method": "Copy"
},
{
"input": "Shaders/BlockPBR.nzsl",
"output": "Shaders/BlockPBR.nzslb",
"method": "Shader"
},
{
"input": "Shaders/Logo.nzsl",
"output": "Shaders/Logo.nzslb",
"method": "Shader"
},
{
"input": "Shaders/PlanetAtmosphere.nzsl",
"output": "Shaders/PlanetAtmosphere.nzslb",
"method": "Shader"
},
{
"input": "Shaders/PlayerPBR.nzsl",
"output": "Shaders/PlayerPBR.nzslb",
"method": "Shader"
},
{
"input": "Shaders/SkyboxMaterial.nzsl",
"output": "Shaders/SkyboxMaterial.nzslb",
"method": "Shader"
},
{
"input": "logo.png",
"output": "Textures/Logo.dds",
"method": "Texture",
"generateMipmaps": false
},
{
"input": "2d.passlist",
"output": "Passes/2d.passlist",
"method": "Copy"
},
{
"input": "3d.passlist",
"output": "Passes/3d.passlist",
"method": "Copy"
},
{
"input": "3d_dev.passlist",
"output": "Passes/3d_dev.passlist",
"method": "Copy"
},
{
"input": "skybox.passlist",
"output": "Passes/skybox.passlist",
"method": "Copy"
},
{
"input": "blocks.json",
"output": "BlockData.json",
"method": "Copy"
}
]
}
114 changes: 114 additions & 0 deletions assets/blocks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
"layers": {
"default": {
"isBlended": false
},
"water": {
"physicsLayer": "StaticWater",
"isBlended": true,
"isFluid": true,
"isPhysicsTrigger": true,
"renderLayer": 100
}
},
"blocks": {
"empty": {
"hasCollisions": false,
"isSmooth": true,
"isTransparent": true,
"permeability": 1.0
},
"debug": {
"basePath": "blocks/debug_up"
},
"dirt": {
"basePath": "blocks/dirt",
"isSmooth": true,
"density": 2.0,
"permeability": 0.1
},
"hull": {
"basePath": "blocks/smooth_stone"
},
"snow": {
"basePath": "blocks/snow",
"isSmooth": true,
"permeability": 0.5
},
"stone": {
"basePath": "blocks/cobblestone",
"isSmooth": true,
"density": 4.0
},
"stone_mossy": {
"basePath": "blocks/mossy_cobblestone",
"isSmooth": true
},
"forcefield": {
"basePath": "blocks/forcefield",
"hasCollisions": false,
"isTransparent": true
},
"planks": {
"basePath": "blocks/planks"
},
"stone_bricks": {
"basePath": "blocks/stone_bricks"
},
"copper_block": {
"basePath": "blocks/copper_block"
},
"grass": {
"basePath": "blocks/grass",
"isSmooth": true,
"density": 2.0,
"permeability": 0.1
},
"glass": {
"basePath": "blocks/glass",
"isDoubleSided": true,
"isSmooth": true,
"isTransparent": true
},
"water": {
"layerName": "water",
"basePath": "blocks/water",
"isDoubleSided": true,
"isSmooth": true,
"isTransparent": true
},
"bark": {
"basePath": "blocks/bark",
"isSmooth": true
},
"cliff_rocks": {
"basePath": "blocks/cliff_rocks",
"isSmooth": true
},
"rock": {
"basePath": "blocks/rock",
"isSmooth": true
},
"wood_floor": {
"basePath": "blocks/wood_floor"
},
"white_bricks": {
"basePath": "blocks/white_bricks"
},
"gold": {
"basePath": "blocks/gold"
},
"metal": {
"basePath": "blocks/metal"
},
"metal_plates": {
"basePath": "blocks/metal_plates"
},
"brickswall": {
"basePath": "blocks/brickswall"
},
"floor_tiles": {
"basePath": "blocks/floor_tiles"
}
}
}
Loading
Loading