Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit f33e0ac

Browse files
committed
import
1 parent 552d88f commit f33e0ac

File tree

88 files changed

+2153
-0
lines changed

Some content is hidden

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

88 files changed

+2153
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.zip
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"blend": {
3+
"func": "add",
4+
"srcrgb": "srcalpha",
5+
"dstrgb": "1-srcalpha"
6+
},
7+
"vertex": "render/special/particle",
8+
"fragment": "render/special/particle",
9+
"attributes": [
10+
"Position",
11+
"UV0",
12+
"Color",
13+
"UV2"
14+
],
15+
"samplers": [
16+
{ "name": "Sampler0" },
17+
{ "name": "Sampler2" }
18+
],
19+
"uniforms": [
20+
{ "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
21+
{ "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
22+
{ "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] },
23+
{ "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] },
24+
{ "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] },
25+
{ "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] },
26+
{ "name": "FogShape", "type": "int", "count": 1, "values": [ 0 ] }
27+
]
28+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#version 150
2+
3+
#moj_import <fog.glsl>
4+
5+
uniform vec4 ColorModulator;
6+
uniform float FogStart;
7+
uniform float FogEnd;
8+
uniform vec4 FogColor;
9+
10+
in float vertexDistance;
11+
12+
out vec4 fragColor;
13+
14+
void main() {
15+
fragColor = linear_fog(ColorModulator, vertexDistance, FogStart, FogEnd, FogColor);
16+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"blend": {
3+
"func": "add",
4+
"srcrgb": "srcalpha",
5+
"dstrgb": "1-srcalpha"
6+
},
7+
"vertex": "position",
8+
"fragment": "position",
9+
"attributes": [
10+
],
11+
"samplers": [
12+
],
13+
"uniforms": [
14+
{ "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
15+
{ "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
16+
{ "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] },
17+
{ "name": "FogStart", "type": "float", "count": 1, "values": [ 0.0 ] },
18+
{ "name": "FogEnd", "type": "float", "count": 1, "values": [ 1.0 ] },
19+
{ "name": "FogColor", "type": "float", "count": 4, "values": [ 0.0, 0.0, 0.0, 0.0 ] },
20+
{ "name": "FogShape", "type": "int", "count": 1, "values": [ 0 ] }
21+
]
22+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#version 150
2+
3+
#moj_import <fog.glsl>
4+
5+
in vec3 Position;
6+
7+
uniform mat4 ProjMat;
8+
uniform mat4 ModelViewMat;
9+
uniform int FogShape;
10+
11+
out float vertexDistance;
12+
13+
void main() {
14+
gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0);
15+
vertexDistance = fog_distance(ModelViewMat, Position, FogShape);
16+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#version 150
2+
3+
in vec4 vertexColor;
4+
5+
uniform vec4 ColorModulator;
6+
7+
out vec4 fragColor;
8+
9+
void main() {
10+
vec4 color = vertexColor;
11+
if (color.a == 0.0) discard;
12+
fragColor = color * ColorModulator;
13+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"blend": {
3+
"func": "add",
4+
"srcrgb": "srcalpha",
5+
"dstrgb": "1-srcalpha"
6+
},
7+
"vertex": "position_color",
8+
"fragment": "position_color",
9+
"attributes": [
10+
"Color"
11+
],
12+
"samplers": [
13+
],
14+
"uniforms": [
15+
{ "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
16+
{ "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
17+
{ "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }
18+
]
19+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#version 150
2+
3+
in vec3 Position;
4+
in vec4 Color;
5+
6+
uniform mat4 ModelViewMat;
7+
uniform mat4 ProjMat;
8+
9+
out vec4 vertexColor;
10+
11+
void main() {
12+
gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0);
13+
vertexColor = Color;
14+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"blend": {
3+
"func": "add",
4+
"srcrgb": "srcalpha",
5+
"dstrgb": "1-srcalpha"
6+
},
7+
"vertex": "render/special/simple",
8+
"fragment": "render/special/simple_cutout",
9+
"attributes": [
10+
"Position",
11+
"Color",
12+
"UV0"
13+
],
14+
"samplers": [
15+
{ "name": "Sampler0" }
16+
],
17+
"uniforms": [
18+
{ "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
19+
{ "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
20+
{ "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }
21+
]
22+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"blend": {
3+
"func": "add",
4+
"srcrgb": "srcalpha",
5+
"dstrgb": "1-srcalpha"
6+
},
7+
"vertex": "render/special/simple",
8+
"fragment": "render/special/simple_cutout",
9+
"attributes": [
10+
"Position",
11+
"Color",
12+
"UV0",
13+
"UV2"
14+
],
15+
"samplers": [
16+
{ "name": "Sampler0" }
17+
],
18+
"uniforms": [
19+
{ "name": "ModelViewMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
20+
{ "name": "ProjMat", "type": "matrix4x4", "count": 16, "values": [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ] },
21+
{ "name": "ColorModulator", "type": "float", "count": 4, "values": [ 1.0, 1.0, 1.0, 1.0 ] }
22+
]
23+
}

0 commit comments

Comments
 (0)