feat: 清除 pointLayer/image,pointLayer/normal shader 多余 varying

This commit is contained in:
2912401452 2021-09-16 12:00:58 +08:00
parent 545f9c2cc1
commit 957adcedf8
4 changed files with 2 additions and 6 deletions

View File

@ -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];

View File

@ -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);

View File

@ -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;

View File

@ -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],
});