fix: point layer 地图高亮的问题

This commit is contained in:
thinkinggis 2020-02-05 10:35:22 +08:00
parent 3062ac7940
commit 5b943721e3
1 changed files with 4 additions and 4 deletions

View File

@ -16,11 +16,11 @@ vec4 filterHighlightColor(vec4 color) {
if (selected) {
vec4 highLightColor = u_HighlightColor * COLOR_SCALE;
// float highLightAlpha = highLightColor.a;
// float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha));
float highLightAlpha = highLightColor.a;
float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha));
// vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio);
return highLightColor;
vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio);
return vec4(resultRGB, color.a);
} else {
return color;
}