diff --git a/assets/font/DroidSans.ttf b/assets/font/DroidSans.ttf new file mode 100644 index 0000000..ad1efca Binary files /dev/null and b/assets/font/DroidSans.ttf differ diff --git a/assets/model/reactor_core_input.stl b/assets/model/reactor_core_input.stl new file mode 100644 index 0000000..7d86b99 Binary files /dev/null and b/assets/model/reactor_core_input.stl differ diff --git a/assets/model/reactor_core_interface_cell.scad b/assets/model/reactor_core_interface_cell.scad new file mode 100644 index 0000000..317d259 --- /dev/null +++ b/assets/model/reactor_core_interface_cell.scad @@ -0,0 +1,3 @@ + +linear_extrude(0.0001) +square([1, 1], center = true); diff --git a/assets/model/reactor_core_interface_cell.stl b/assets/model/reactor_core_interface_cell.stl new file mode 100644 index 0000000..3d05d78 Binary files /dev/null and b/assets/model/reactor_core_interface_cell.stl differ diff --git a/assets/model/reactor_core_interface_circle.scad b/assets/model/reactor_core_interface_circle.scad new file mode 100644 index 0000000..4bdc405 --- /dev/null +++ b/assets/model/reactor_core_interface_circle.scad @@ -0,0 +1,10 @@ + +$fn = 256; + +linear_extrude(0.0001) +translate([0.5, 0.5]) +difference() +{ + circle(d = 0.81); + circle(d = 0.8); +} diff --git a/assets/model/reactor_core_interface_circle.stl b/assets/model/reactor_core_interface_circle.stl new file mode 100644 index 0000000..8193953 Binary files /dev/null and b/assets/model/reactor_core_interface_circle.stl differ diff --git a/assets/model/scene_collisions.stl b/assets/model/scene_collisions.stl new file mode 100644 index 0000000..eee4323 Binary files /dev/null and b/assets/model/scene_collisions.stl differ diff --git a/assets/scene-baked.glb b/assets/scene-baked.glb new file mode 100644 index 0000000..1c6cb0b --- /dev/null +++ b/assets/scene-baked.glb @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e95d9c35819ae80c6a1bffd98b5127e905b18a3dca9bf7ce689d3caab487ca4c +size 66429308 diff --git a/assets/shader/main.fsh b/assets/shader/main.fsh new file mode 100644 index 0000000..13e4a90 --- /dev/null +++ b/assets/shader/main.fsh @@ -0,0 +1,20 @@ + +#version 460 core +#extension GL_ARB_bindless_texture : require + +in float brightness; +in flat sampler2D tex; +in vec2 texPos; + +out vec4 FragColour; + +uniform mat4 tex_mat; + +void main() +{ + vec4 texdata = texture2D(tex, texPos); + FragColour = tex_mat * texdata * vec4(vec3(brightness), 1); + + if(FragColour.a == 0) discard; +} + diff --git a/assets/shader/main.vsh b/assets/shader/main.vsh new file mode 100644 index 0000000..fbe8a82 --- /dev/null +++ b/assets/shader/main.vsh @@ -0,0 +1,28 @@ + +#version 460 core +#extension GL_ARB_bindless_texture : require + +layout (location = 0) in sampler2D aTex; +layout (location = 1) in vec2 aTexPos; +layout (location = 2) in vec4 aPos; +layout (location = 3) in vec3 aNormal; + +uniform mat4 model; +uniform mat4 projection; + +out float brightness; +out flat sampler2D tex; +out vec2 texPos; + +void main() +{ + vec4 pos = model * aPos; + vec3 cNormal = vec3(0.f, 0.f, 1.f) * mat3(model); + + brightness = dot(normalize(aNormal), normalize(cNormal)) * 0.25f + 0.75f; + + gl_Position = projection * pos; + texPos = aTexPos; + tex = aTex; +} + diff --git a/assets/unbaked/AllPlants/AllPlants.mtl b/assets/unbaked/AllPlants/AllPlants.mtl new file mode 100644 index 0000000..58727c5 --- /dev/null +++ b/assets/unbaked/AllPlants/AllPlants.mtl @@ -0,0 +1,82 @@ +# Blender 4.0.2 MTL File: 'None' +# www.blender.org + +newmtl M_ClayPot1 +Ns 380.250000 +Ka 1.000000 1.000000 1.000000 +Ks 0.370000 0.370000 0.370000 +Ke 0.000000 0.000000 0.000000 +Ni 1.450000 +d 1.000000 +illum 2 +map_Kd PlantsLargeUV.png + +newmtl M_ClayPot2 +Ns 380.250000 +Ka 1.000000 1.000000 1.000000 +Ks 0.370000 0.370000 0.370000 +Ke 0.000000 0.000000 0.000000 +Ni 1.450000 +d 1.000000 +illum 2 +map_Kd PlantsSmallUV.png + +newmtl M_Dirt +Ns 36.000000 +Ka 1.000000 1.000000 1.000000 +Ks 0.050000 0.050000 0.050000 +Ke 0.000000 0.000000 0.000000 +Ni 1.450000 +d 1.000000 +illum 2 +map_Kd PlantsLargeUV.png + +newmtl M_Dirt2 +Ns 36.000000 +Ka 1.000000 1.000000 1.000000 +Ks 0.050000 0.050000 0.050000 +Ke 0.000000 0.000000 0.000000 +Ni 1.450000 +d 1.000000 +illum 2 +map_Kd PlantsSmallUV.png + +newmtl M_GrassyLeaf +Ns 302.760040 +Ka 1.000000 1.000000 1.000000 +Ks 0.250000 0.250000 0.250000 +Ke 0.000000 0.000000 0.000000 +Ni 1.450000 +d 1.000000 +illum 2 +map_Kd PlantsLargeUV.png + +newmtl M_IvyLeaf +Ns 324.000031 +Ka 1.000000 1.000000 1.000000 +Ks 0.500000 0.500000 0.500000 +Ke 0.000000 0.000000 0.000000 +Ni 1.450000 +d 1.000000 +illum 2 +map_Kd PlantsSmallUV.png + +newmtl M_LargeLeaf +Ns 492.839996 +Ka 1.000000 1.000000 1.000000 +Ks 0.500000 0.500000 0.500000 +Ke 0.000000 0.000000 0.000000 +Ni 1.450000 +d 1.000000 +illum 2 +map_Kd PlantsLargeUV.png + +newmtl M_SmallLeaf +Ns 380.250000 +Ka 1.000000 1.000000 1.000000 +Ks 0.500000 0.500000 0.500000 +Ke 0.000000 0.000000 0.000000 +Ni 1.450000 +d 1.000000 +illum 2 +map_Kd PlantsSmallUV.png diff --git a/assets/unbaked/AllPlants/AllPlants.obj b/assets/unbaked/AllPlants/AllPlants.obj new file mode 100644 index 0000000..cea0718 --- /dev/null +++ b/assets/unbaked/AllPlants/AllPlants.obj @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:321768633e17e4ca73d51c0d85851e0ccbce17fef10f7d87a5adb97e74d92325 +size 50441976 diff --git a/assets/unbaked/AllPlants/PlantsLargeUV.png b/assets/unbaked/AllPlants/PlantsLargeUV.png new file mode 100644 index 0000000..1e092ad --- /dev/null +++ b/assets/unbaked/AllPlants/PlantsLargeUV.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c7850bc877ead535a0b105ab513514f224eac71f6b5c5121b50f6125a0c93d8 +size 3748733 diff --git a/assets/unbaked/AllPlants/PlantsSmallUV.png b/assets/unbaked/AllPlants/PlantsSmallUV.png new file mode 100644 index 0000000..b3939a4 --- /dev/null +++ b/assets/unbaked/AllPlants/PlantsSmallUV.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94fbff1e4300b9c7cb9d8ea53fb990a5b556aee0cd1fd18be6e24488998e3862 +size 2943225 diff --git a/assets/unbaked/scene.blend b/assets/unbaked/scene.blend new file mode 100644 index 0000000..9e7ba4a --- /dev/null +++ b/assets/unbaked/scene.blend @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe3f5df6086f9ddfe253116efadb3dbcbbca826b5cfcb3a320dc63c7e85b6ff6 +size 79959028 diff --git a/assets/unbaked/scene.stl b/assets/unbaked/scene.stl new file mode 100644 index 0000000..eee4323 Binary files /dev/null and b/assets/unbaked/scene.stl differ diff --git a/assets/unbaked/scene/smooth+white+tile-1024x1024.png b/assets/unbaked/scene/smooth+white+tile-1024x1024.png new file mode 100644 index 0000000..d1c72c3 --- /dev/null +++ b/assets/unbaked/scene/smooth+white+tile-1024x1024.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1559e7c9919a98717fbe68e84520e20cd75ab60374ffa7c0393a589e979f17e7 +size 220014