From 057a9ea4f320706029fa427cd24f5e4aaba178e1 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 30 Jan 2022 20:20:36 +0100 Subject: [PATCH] Fix radiation shader not working on GLES2. --- Resources/Textures/Shaders/radiation.swsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;