diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-05-15 12:30:23 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-05-15 12:30:23 +0800 |
commit | 0958f5cc290b5ad7cfe6ea10974d65f8ab79ae0a (patch) | |
tree | 8858e0d11872094c59ba8f2c4e281c54eb9b98ef /indra/newview/app_settings/shaders/class1/interface | |
parent | c655968f91ca6b74b91219d08cf3e8f16c7d45d5 (diff) |
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.
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 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]; } |