Skip to content

Commit 03578f1

Browse files
committed
feat: Base Commit
0 parents  commit 03578f1

129 files changed

Lines changed: 190571 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.gradle/
2+
build/
3+
gradle/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
!**/src/main/**/build/
6+
!**/src/test/**/build/
7+
8+
### IntelliJ IDEA ###
9+
.idea/
10+
.idea/modules.xml
11+
.idea/jarRepositories.xml
12+
.idea/compiler.xml
13+
.idea/libraries/
14+
*.iws
15+
*.iml
16+
*.ipr
17+
out/
18+
!**/src/main/**/out/
19+
!**/src/test/**/out/
20+
21+
### Eclipse ###
22+
.apt_generated
23+
.classpath
24+
.factorypath
25+
.project
26+
.settings
27+
.springBeans
28+
.sts4-cache
29+
!**/src/main/**/bin/
30+
!**/src/test/**/bin/
31+
32+
### NetBeans ###
33+
/nbproject/private/
34+
/nbbuild/
35+
/dist/
36+
/nbdist/
37+
/.nb-gradle/
38+
39+
### VS Code ###
40+
.vscode/
41+
42+
### Mac OS ###
43+
.DS_Store

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 FallenDeity
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

assets/images/gizmos.png

1.38 KB

assets/images/logo.png

3.53 KB

assets/shaders/default.glsl

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#type vertex
2+
#version 330 core
3+
layout (location = 0) in vec3 aPos;
4+
layout (location = 1) in vec4 aColor;
5+
layout (location = 2) in vec2 aTexCoords;
6+
layout (location = 3) in float aTexId;
7+
8+
uniform mat4 uProjection;
9+
uniform mat4 uView;
10+
11+
out vec4 fColor;
12+
out vec2 fTexCoords;
13+
out float fTexId;
14+
15+
void main() {
16+
fColor = aColor;
17+
fTexCoords = aTexCoords;
18+
fTexId = aTexId;
19+
gl_Position = uProjection * uView * vec4(aPos, 1.0);
20+
}
21+
22+
#type fragment
23+
#version 330 core
24+
25+
in vec4 fColor;
26+
in vec2 fTexCoords;
27+
in float fTexId;
28+
29+
uniform sampler2D uTextures[8];
30+
31+
out vec4 FragColor;
32+
33+
void main() {
34+
if (fTexId > 0.0) {
35+
FragColor = fColor * texture(uTextures[int(fTexId)], fTexCoords);
36+
return;
37+
}
38+
FragColor = fColor;
39+
}

assets/shaders/line2d.glsl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#type vertex
2+
#version 330 core
3+
layout (location = 0) in vec3 aPos;
4+
layout (location = 1) in vec3 aColor;
5+
6+
out vec3 fColor;
7+
8+
uniform mat4 uView;
9+
uniform mat4 uProjection;
10+
11+
void main()
12+
{
13+
gl_Position = uProjection * uView * vec4(aPos, 1.0);
14+
fColor = aColor;
15+
}
16+
17+
#type fragment
18+
#version 330 core
19+
20+
in vec3 fColor;
21+
22+
out vec4 FragColor;
23+
24+
void main()
25+
{
26+
FragColor = vec4(fColor, 1.0);
27+
}

assets/shaders/picker.glsl

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#type vertex
2+
#version 330 core
3+
layout (location = 0) in vec3 aPos;
4+
layout (location = 1) in vec4 aColor;
5+
layout (location = 2) in vec2 aTexCoords;
6+
layout (location = 3) in float aTexId;
7+
layout (location = 4) in float aEntityId;
8+
9+
uniform mat4 uProjection;
10+
uniform mat4 uView;
11+
12+
out vec4 fColor;
13+
out vec2 fTexCoords;
14+
out float fTexId;
15+
out float fEntityId;
16+
17+
void main() {
18+
fColor = aColor;
19+
fTexCoords = aTexCoords;
20+
fTexId = aTexId;
21+
fEntityId = aEntityId;
22+
gl_Position = uProjection * uView * vec4(aPos, 1.0);
23+
}
24+
25+
#type fragment
26+
#version 330 core
27+
28+
in vec4 fColor;
29+
in vec2 fTexCoords;
30+
in float fTexId;
31+
in float fEntityId;
32+
33+
uniform sampler2D uTextures[8];
34+
35+
out vec3 FragColor;
36+
37+
void main() {
38+
vec4 texColor = vec4(1.0, 1.0, 1.0, 1.0);
39+
if (fTexId > 0.0) {
40+
texColor = fColor * texture(uTextures[int(fTexId)], fTexCoords);
41+
}
42+
if (texColor.a < 0.5) {
43+
discard;
44+
}
45+
FragColor = vec3(fEntityId, fEntityId, fEntityId);
46+
}

assets/sounds/1-up.ogg

13.9 KB
Binary file not shown.

assets/sounds/bowserfalls.ogg

18.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)