Fixed shaders endings
This commit is contained in:
parent
32bf900c2f
commit
a126777a89
2 changed files with 2 additions and 3 deletions
|
|
@ -10,4 +10,3 @@ vec4 luminance(vec4 col)
|
||||||
void fragment() {
|
void fragment() {
|
||||||
COLOR = mix(COLOR, luminance(COLOR),amount);
|
COLOR = mix(COLOR, luminance(COLOR),amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ void fragment() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
vec4 colour = textureLod(screen_texture, SCREEN_UV,0.0);
|
vec4 colour = textureLod(screen_texture, SCREEN_UV,0.0);
|
||||||
|
|
||||||
if (colour.a > 0.0001) {
|
if (colour.a > 0.0001) {
|
||||||
colour.rgb /= colour.a;
|
colour.rgb /= colour.a;
|
||||||
}
|
}
|
||||||
|
|
||||||
vec4 outline = vec4(line_colour, min(line_alpha, 1.0));
|
vec4 outline = vec4(line_colour, min(line_alpha, 1.0));
|
||||||
COLOR *= mix(outline, colour, colour.a);
|
COLOR *= mix(outline, colour, colour.a);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue