diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-05-16 22:11:52 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-05-16 22:11:52 +0800 |
commit | 90390faa23644447cad0d119ca1ec7f4d1e0ad62 (patch) | |
tree | cdf5af9c4c695269233e285eb0fcf3f219db9ac3 /indra/newview/app_settings/shaders/class1/interface | |
parent | 6d51e91895a7f2435c46a876410ccc6c63fe8c82 (diff) |
Fix previous shader float conversion
The i variable is still used as an integer on the next line.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/interface')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl b/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl index e0c65291b7..82f32da048 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 (float i = 0.0; i < 9.0; i += 1.0) + for (int i = 0; i < 9; ++i) { - vec2 tc = vary_texcoord0 + (i-4.0)*direction*resScale; + vec2 tc = vary_texcoord0 + float(i-4)*direction*resScale; col += texture(diffuseRect, tc).rgb * w[i]; } |