aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/.stationary/Shaders/Default.glsl38
-rw-r--r--assets/.stationary/Shaders/SimpleLine.glsl20
-rw-r--r--assets/GameRendererBindings.json1
-rw-r--r--assets/Ires/SS_Player.json9
-rw-r--r--assets/Ires/S_SimpleLine.json9
5 files changed, 77 insertions, 0 deletions
diff --git a/assets/.stationary/Shaders/Default.glsl b/assets/.stationary/Shaders/Default.glsl
new file mode 100644
index 0000000..1d93471
--- /dev/null
+++ b/assets/.stationary/Shaders/Default.glsl
@@ -0,0 +1,38 @@
+#type vertex
+#version 330 core
+
+layout(location = 0) in vec3 pos;
+layout(location = 1) in vec4 color;
+layout(location = 2) in vec2 texcoord;
+
+out Vertex2Fragmnet {
+ vec4 color;
+ vec2 texcoord;
+} v2f;
+
+// Autofill uniforms
+uniform mat4 transformation;
+
+void main() {
+ gl_Position = transformation * vec4(pos, 1.0);
+ v2f.color = color;
+ v2f.texcoord = texcoord;
+}
+
+#type fragment
+#version 330 core
+
+in Vertex2Fragmnet {
+ vec4 color;
+ vec2 texcoord;
+} v2f;
+
+out vec4 fragColor;
+
+// Material uniforms
+uniform sampler2D textureAtlas;
+uniform vec4 taint;
+
+void main() {
+ fragColor = texture(textureAtlas, v2f.texcoord) * v2f.color * taint;
+}
diff --git a/assets/.stationary/Shaders/SimpleLine.glsl b/assets/.stationary/Shaders/SimpleLine.glsl
new file mode 100644
index 0000000..60c23d4
--- /dev/null
+++ b/assets/.stationary/Shaders/SimpleLine.glsl
@@ -0,0 +1,20 @@
+#type vertex
+#version 330 core
+
+layout(location = 0) in vec3 pos;
+
+// Autofill uniforms
+uniform mat4 transformation;
+
+void main() {
+ gl_Position = transformation * vec4(pos, 1.0);
+}
+
+#type fragment
+#version 330 core
+
+out vec4 fragColor;
+
+void main() {
+ fragColor = vec4(1.0, 1.0, 1.0, 1.0);
+}
diff --git a/assets/GameRendererBindings.json b/assets/GameRendererBindings.json
new file mode 100644
index 0000000..29d101f
--- /dev/null
+++ b/assets/GameRendererBindings.json
@@ -0,0 +1 @@
+{"WireframeMaterial":[8765761170342665863,6245907801943875283]} \ No newline at end of file
diff --git a/assets/Ires/SS_Player.json b/assets/Ires/SS_Player.json
new file mode 100644
index 0000000..c2920ed
--- /dev/null
+++ b/assets/Ires/SS_Player.json
@@ -0,0 +1,9 @@
+{
+ "Type": "IresSpritesheet",
+ "Uid": "dba64b050b68df71-70d6daa8fc045f17",
+ "Value": {
+ "SpriteSheet": "S_Player.png",
+ "WSplit": 6,
+ "HSplit": 4
+ }
+} \ No newline at end of file
diff --git a/assets/Ires/S_SimpleLine.json b/assets/Ires/S_SimpleLine.json
new file mode 100644
index 0000000..5b62b0e
--- /dev/null
+++ b/assets/Ires/S_SimpleLine.json
@@ -0,0 +1,9 @@
+{
+ "Type": "IresShader",
+ "Uid": "1d6ae0953c91b56f-333f006389f662d9",
+ "Value": {
+ "SourceFile": ".stationary/Shaders/SimpleLine.glsl",
+ "Inputs": [],
+ "Outputs": []
+ }
+} \ No newline at end of file