Skip to content

Commit 13946fc

Browse files
committed
Update to 1.21.8
1 parent 9a39160 commit 13946fc

File tree

8 files changed

+47
-28
lines changed

8 files changed

+47
-28
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
#version 300 es
1+
#version 460
22

33
layout (location = 0) in vec3 i_pos;
44

5-
uniform mat4 u_projection;
5+
layout(std140) uniform u_projection {
6+
mat4 projection;
7+
};
68

79
out vec4 vertexColor;
810

911
void main() {
10-
gl_Position = u_projection * vec4(i_pos, 1.0f);
12+
gl_Position = projection * vec4(i_pos, 1.0f);
1113
vertexColor = vec4(0.0 / 255.0f, 0.0 / 255.0f, 0.0 / 255.0f, 255.0 / 255.0f);
1214
}

src/main/resources/assets/renderer/shader/identity.fsh renamed to src/main/resources/assets/veinbuddy/shaders/identity.fsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#version 300 es
1+
#version 460
22

33
in mediump vec4 vertexColor;
44

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#version 460
2+
3+
layout(std140) uniform u_projection {
4+
mat4 projection;
5+
};
6+
7+
layout (location = 0) in vec3 i_pos;
8+
9+
out vec4 vertexColor;
10+
11+
void main() {
12+
gl_Position = projection * vec4(i_pos, 1.0f);
13+
vertexColor = vec4(0.0 / 255.0f, 0.0 / 255.0f, 0.0 / 255.0f, 255.0 / 255.0f);
14+
}

src/main/resources/assets/renderer/shader/selections.vsh renamed to src/main/resources/assets/veinbuddy/shaders/selections.vsh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
#version 300 es
1+
#version 460
22

33
layout (location = 0) in vec3 i_pos;
44

5-
uniform mat4 u_projection;
5+
layout(std140) uniform u_projection {
6+
mat4 projection;
7+
};
68

79
out vec4 vertexColor;
810

911
void main() {
10-
gl_Position = u_projection * vec4(i_pos, 1.0f);
12+
gl_Position = projection * vec4(i_pos, 1.0f);
1113
vertexColor = vec4(0.0 / 255.0f, 128.0f / 255.0f, 0.0 / 255.0f, 96.0 / 255.0f);
1214
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
#version 300 es
1+
#version 460
22

33
layout (location = 0) in vec3 i_pos;
44

5-
uniform mat4 u_projection;
5+
layout(std140) uniform u_projection {
6+
mat4 projection;
7+
};
68

79
out vec4 vertexColor;
810

911
void main() {
10-
gl_Position = u_projection * vec4(i_pos, 1.0f);
12+
gl_Position = projection * vec4(i_pos, 1.0f);
1113
vertexColor = vec4(128.0 / 255.0f, 0.0f / 255.0f, 0.0 / 255.0f, 96.0 / 255.0f);
1214
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#version 460
2+
3+
layout(std140) uniform u_projection {
4+
mat4 projection;
5+
};
6+
7+
layout (location = 0) in vec3 i_pos;
8+
9+
out vec4 vertexColor;
10+
11+
void main() {
12+
gl_Position = projection * vec4(i_pos, 1.0f);
13+
vertexColor = vec4(0.0 / 255.0f, 0.0 / 255.0f, 0.0 / 255.0f, 255.0 / 255.0f);
14+
}

src/main/resources/fabric.mod.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"license": "CC0-1.0",
1515
"icon": "assets/modid/icon.png",
16-
"environment": "*",
16+
"environment": "client",
1717
"entrypoints": {
1818
"main": [
1919
"com.veinbuddy.VeinBuddy"
@@ -23,15 +23,10 @@
2323
]
2424
},
2525
"mixins": [
26-
"veinbuddy.mixins.json",
27-
{
28-
"config": "veinbuddy.client.mixins.json",
29-
"environment": "client"
30-
}
3126
],
3227
"depends": {
33-
"fabricloader": ">=0.15.11",
34-
"minecraft": "~1.21",
28+
"fabricloader": ">=0.16.14",
29+
"minecraft": "~1.21.8",
3530
"java": ">=21",
3631
"fabric-api": "*"
3732
},

src/main/resources/veinbuddy.mixins.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)