mirror of https://gitee.com/antv-l7/antv-l7
feat: 清除 pointLayer/image,pointLayer/normal shader 多余 varying
This commit is contained in:
parent
545f9c2cc1
commit
957adcedf8
|
@ -7,7 +7,6 @@ uniform float u_opacity : 1;
|
|||
|
||||
varying mat4 styleMappingMat; // 传递从片元中传递的映射数据
|
||||
|
||||
varying float v_size;
|
||||
#pragma include "picking"
|
||||
void main(){
|
||||
float opacity = styleMappingMat[0][0];
|
||||
|
|
|
@ -9,7 +9,6 @@ uniform mat4 u_ModelMatrix;
|
|||
uniform mat4 u_Mvp;
|
||||
uniform float u_stroke_width : 1;
|
||||
uniform vec2 u_offsets;
|
||||
varying float v_size;
|
||||
|
||||
uniform float u_opacity : 1;
|
||||
|
||||
|
@ -64,7 +63,7 @@ void main() {
|
|||
v_color = a_Color;
|
||||
v_uv = a_Uv;
|
||||
vec4 project_pos = project_position(vec4(a_Position, 1.0));
|
||||
v_size = a_Size;
|
||||
|
||||
// vec2 offset = project_pixel(u_offsets);
|
||||
vec2 offset = project_pixel(textrueOffsets);
|
||||
|
||||
|
|
|
@ -6,8 +6,6 @@ attribute float a_Size;
|
|||
attribute vec4 a_Color;
|
||||
varying vec4 v_color;
|
||||
|
||||
|
||||
|
||||
uniform float u_opacity : 1;
|
||||
uniform vec2 u_offsets;
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ export default class Amap2demo_arcLine extends React.Component {
|
|||
.style({
|
||||
opacity: 0.8,
|
||||
blur: 0.99,
|
||||
segmentNumber: 3,
|
||||
// segmentNumber: 3,
|
||||
// lineType: 'dash',
|
||||
// dashArray: [5, 5],
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue