From e0d58f1eb388e7e224b71046762de69fa56140d4 Mon Sep 17 00:00:00 2001 From: E F R <602406+Efruit@users.noreply.github.com> Date: Thu, 2 Dec 2021 01:09:42 +0000 Subject: [PATCH] Shaders/radiation: Maybe fix some weird graphical effects on some Intel graphics chipsets (#5648) --- Resources/Textures/Shaders/radiation.swsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Textures/Shaders/radiation.swsl b/Resources/Textures/Shaders/radiation.swsl index 939d3c5cb8..7d2e65a2b9 100644 --- a/Resources/Textures/Shaders/radiation.swsl +++ b/Resources/Textures/Shaders/radiation.swsl @@ -41,7 +41,7 @@ highp float fbm(highp vec2 uv) { void fragment() { highp vec2 finalCoords = (FRAGCOORD.xy - positionInput) / (renderScale * 32.0); highp float distanceToCenter = length(finalCoords); - highp float nlife = pow(sin(life * 3.141592), 0.5); + highp float nlife = pow(sin(clamp(life, 0.0, 1.0) * 3.141592), 0.5); highp float on = ((range - distanceToCenter) / range); highp float n = on; highp vec2 fcOffset = vec2(fbm(finalCoords.xy + life / 2.0),fbm(finalCoords.yx + life / 2.0));