Ability to use opacity on distance field textures, fixes #2148
This commit is contained in:
parent
b0b1da6950
commit
8fb70142e4
@ -196,7 +196,7 @@ void main() {
|
||||
#ifdef USE_DISTANCE_FIELD
|
||||
const float smoothing = 1.0/32.0;
|
||||
float distance = texture2D(texture, uv_interp).a;
|
||||
color.a = smoothstep(0.5 - smoothing, 0.5 + smoothing, distance);
|
||||
color.a = smoothstep(0.5 - smoothing, 0.5 + smoothing, distance) * color.a;
|
||||
#else
|
||||
color *= texture2D( texture, uv_interp );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user