Skip to content

Commit 303fc26

Browse files
authored
Fixed texture fade shader (SerbiaStrong-220#1626)
1 parent caf1bca commit 303fc26

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# © SS220, An EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt
2-
# Fkn broken on some devices, fix later
3-
# - type: shader
4-
# id: TextureFade
5-
# kind: source
6-
# path: "/Textures/SS220/Shaders/texture_fade.swsl"
2+
- type: shader
3+
id: TextureFade
4+
kind: source
5+
path: "/Textures/SS220/Shaders/texture_fade.swsl"

Resources/Textures/SS220/Shaders/texture_fade.swsl

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
uniform highp float FadeProgress;
33

44
void fragment() {
5-
65
highp vec4 color = texture2D(TEXTURE, UV.xy);
76
if (color.a <= FadeProgress) {
87
discard;
98
}
10-
color.a = 1;
9+
color.a = 1.0;
1110
COLOR = color;
1211
}

0 commit comments

Comments
 (0)