This commit is contained in:
2912401452 2021-12-21 15:49:04 +08:00
commit 19cfd7d6e7
2 changed files with 17 additions and 6 deletions

View File

@ -82,7 +82,13 @@ void main() {
float N_RINGS = 3.0;
float FREQ = 1.0;
if(strokeWidth < 0.01) {
gl_FragColor = vec4(v_color.rgb, v_color.a * opacity);
} else {
gl_FragColor = mix(vec4(v_color.rgb, v_color.a * opacity), strokeColor * stroke_opacity, color_t);
}
// gl_FragColor = mix(vec4(v_color.rgb, v_color.a * opacity), strokeColor * stroke_opacity, color_t);
if(u_aimate.x == Animate) {
float d = length(v_data.xy);
@ -105,10 +111,14 @@ void main() {
} else {
gl_FragColor = filterColor(gl_FragColor);
}
} else {
gl_FragColor = filterColor(gl_FragColor);
}
if(u_additive > 0.0) {
gl_FragColor *= opacity_t;
} else {
gl_FragColor.a *= opacity_t;
}
}

View File

@ -78,13 +78,14 @@ export default class GaodeMapComponent extends React.Component {
},
)
.shape('circle')
.color('#00f')
.color('#0f9')
.size(circleRadius)
.style({
stroke: '#f00',
// strokeWidth: 10,
strokeWidth: 0,
strokeOpacity: 1,
unit: 'meter',
// unit: 'meter',
})
// .animate(true)
.active({ color: '#00f' });