Skip to content

Commit 47b13ed

Browse files
committed
Simplify explosion color interpolation
1 parent e1d8ecd commit 47b13ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/globe/layers/explosiondata/explosions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const commonMaterial = new THREE.ShaderMaterial({
5555
uniform float opacity;
5656
5757
void main() {
58-
gl_FragColor = mix(vec4(startColor, opacity), vec4(endColor, opacity), colorInterpolationFactor) * vec4(lightColor * lightIntensity, 1.0);
58+
gl_FragColor = vec4(mix(startColor, endColor, colorInterpolationFactor) * lightColor * lightIntensity, opacity);
5959
}
6060
`,
6161
});

0 commit comments

Comments
 (0)