mirror of https://gitee.com/antv-l7/antv-l7
fix: point layer 地图高亮的问题
This commit is contained in:
parent
10733c97de
commit
e5e520e8d0
|
@ -16,11 +16,11 @@ vec4 filterHighlightColor(vec4 color) {
|
||||||
if (selected) {
|
if (selected) {
|
||||||
vec4 highLightColor = u_HighlightColor * COLOR_SCALE;
|
vec4 highLightColor = u_HighlightColor * COLOR_SCALE;
|
||||||
|
|
||||||
// float highLightAlpha = highLightColor.a;
|
float highLightAlpha = highLightColor.a;
|
||||||
// float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha));
|
float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha));
|
||||||
|
|
||||||
// vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio);
|
vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio);
|
||||||
return highLightColor;
|
return vec4(resultRGB, color.a);
|
||||||
} else {
|
} else {
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue