diff --git a/Resources/Textures/Shaders/radiation.swsl b/Resources/Textures/Shaders/radiation.swsl index 7d2e65a2b9..0daf1c24df 100644 --- a/Resources/Textures/Shaders/radiation.swsl +++ b/Resources/Textures/Shaders/radiation.swsl @@ -25,11 +25,11 @@ highp float noise(highp vec2 uv) { } highp float fbm(highp vec2 uv) { - int octaves = 6; + const int octaves = 6; highp float amplitude = 0.5; highp float frequency = 3.0; highp float value = 0.0; - + for(int i = 0; i < octaves; i++) { value += amplitude * noise(frequency * uv); amplitude *= 0.5;