Skip to content

Commit 1ef210b

Browse files
committed
reorganize track assets
1 parent 2a404b8 commit 1ef210b

37 files changed

+54
-29
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#version 330
2+
3+
in vec2 fragTexCoord;
4+
in vec4 fragColor;
5+
in vec3 fragPosition;
6+
7+
uniform sampler2D maskTexture;
8+
uniform sampler2D texture0;
9+
uniform vec4 colDiffuse;
10+
uniform float time;
11+
uniform float fadeStart;
12+
uniform float fadeEnd;
13+
uniform float trackLength = 20;
14+
uniform float fadeSize = 3;
15+
16+
out vec4 finalColor;
17+
18+
void main()
19+
{
20+
vec2 push = vec2(fragTexCoord.x, fragTexCoord.y-time);
21+
22+
vec4 baseColor = texture(texture0, push) * fragColor * colDiffuse;
23+
baseColor.a *= smoothstep(trackLength, trackLength-fadeSize, fragPosition.z);
24+
finalColor = baseColor;
25+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)