From 0958f5cc290b5ad7cfe6ea10974d65f8ab79ae0a Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Wed, 15 May 2024 12:30:23 +0800 Subject: Float operands for float operations This is so that it doesn't throw a compilation error at runtime for not finding the named function expecting certain operand types, on some certain other implementation. --- indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indra/newview/app_settings/shaders/class1/interface') diff --git a/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl b/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl index eca591d387..93ad742dac 100644 --- a/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl @@ -43,9 +43,9 @@ void main() float w[9] = float[9]( 0.0002, 0.0060, 0.0606, 0.2417, 0.3829, 0.2417, 0.0606, 0.0060, 0.0002 ); - for (int i = 0; i < 9; ++i) + for (float i = 0.0; i < 9.0; i += 1.0) { - vec2 tc = vary_texcoord0 + (i-4)*direction*resScale; + vec2 tc = vary_texcoord0 + (i-4.0)*direction*resScale; col += texture(diffuseRect, tc).rgb * w[i]; } -- cgit v1.2.3