diff --git a/src/shockwave/shockwave.wgsl b/src/shockwave/shockwave.wgsl index e15035889..4d64cf8a3 100644 --- a/src/shockwave/shockwave.wgsl +++ b/src/shockwave/shockwave.wgsl @@ -71,7 +71,9 @@ fn mainFragment( clampedColor *= max(0.0, 1.0 - length(coord - clampedCoord)); } // No clamp : - return select(clampedColor * vec4(vec3(1.0 + (uBrightness - 1.0) * p * fade), clampedColor.a), textureSample(uTexture, uSampler, uv), returnColorOnly); + var finalColor = clampedColor; + + return select(finalColor, textureSample(uTexture, uSampler, uv), returnColorOnly); } fn boolVec2(x: vec2, y: vec2) -> bool