@pirireis/webglobeplugins 0.6.34 → 0.6.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -89,16 +89,6 @@ export default class TimeTrackMultiColorPlugin {
|
|
|
89
89
|
this.globe.DrawRender();
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
setGlow(isGlow) {
|
|
93
|
-
this.program.setGlow(isGlow);
|
|
94
|
-
this.globe.DrawRender();
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
setPremultipliedAlpha(isPremultiplied) {
|
|
98
|
-
this.program.setPremultipliedAlpha(isPremultiplied);
|
|
99
|
-
this.globe.DrawRender();
|
|
100
|
-
}
|
|
101
|
-
|
|
102
92
|
setBlurWeights(weights) {
|
|
103
93
|
this.program.setBlurWeights(weights);
|
|
104
94
|
this.globe.DrawRender();
|
|
@@ -134,10 +124,7 @@ export default class TimeTrackMultiColorPlugin {
|
|
|
134
124
|
this.globe.DrawRender();
|
|
135
125
|
}
|
|
136
126
|
|
|
137
|
-
|
|
138
|
-
this.program.setAlphaThreshold(alphaThreshold);
|
|
139
|
-
this.globe.DrawRender();
|
|
140
|
-
}
|
|
127
|
+
|
|
141
128
|
|
|
142
129
|
// ---------------point program setters-------------------
|
|
143
130
|
|
|
@@ -60,7 +60,7 @@ export default class TrackGlowLineProgram {
|
|
|
60
60
|
gl.uniform1f(_lineProgram.u_route_alpha, options.routeAlpha || 0.025);
|
|
61
61
|
|
|
62
62
|
gl.useProgram(_blurProgram.program);
|
|
63
|
-
gl.uniform1fv(_blurProgram.u_weight, options.weights || [
|
|
63
|
+
gl.uniform1fv(_blurProgram.u_weight, options.weights || [0.55, 0.45045946, 0.3216216, 0.254054, 0.056216]);
|
|
64
64
|
|
|
65
65
|
gl.useProgram(_combineProgram.program);
|
|
66
66
|
gl.uniform1f(_combineProgram.u_exposure, options.exposure || 1.0);
|
|
@@ -71,14 +71,6 @@ export default class TrackGlowLineProgram {
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
setPremultipliedAlpha(boolean) {
|
|
75
|
-
throw new Error("setPremultipliedAlpha method is depricated. Please remove it from your code.");
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
setAlphaThreshold(alpha) {
|
|
80
|
-
throw new Error("setAlphaThreshold method is depricated. Please remove it from your code.");
|
|
81
|
-
}
|
|
82
74
|
|
|
83
75
|
|
|
84
76
|
/**
|
|
@@ -163,9 +155,6 @@ export default class TrackGlowLineProgram {
|
|
|
163
155
|
gl.useProgram(currentProgram);
|
|
164
156
|
}
|
|
165
157
|
|
|
166
|
-
setGlow(boolean) {
|
|
167
|
-
throw new Error("setGlow method is depricated. Please remove it from your code.");
|
|
168
|
-
}
|
|
169
158
|
|
|
170
159
|
/**
|
|
171
160
|
* blur uses pingpong effect. This number decides how many times the blur will be applied.
|