From 295f528f08f6c8f67e0c03f109cef8c97aad4127 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 2 Apr 2023 13:31:06 +0400 Subject: [PATCH] Use Allman brackets --- files/shaders/compatibility/ripples_blobber.frag | 3 ++- files/shaders/core/ripples_blobber.comp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/files/shaders/compatibility/ripples_blobber.frag b/files/shaders/compatibility/ripples_blobber.frag index 270fd3b3b4..ea874af83e 100644 --- a/files/shaders/compatibility/ripples_blobber.frag +++ b/files/shaders/compatibility/ripples_blobber.frag @@ -17,7 +17,8 @@ void main() vec4 color = texture2D(imageIn, uv); float wavesizeMultiplier = getTemporalWaveSizeMultiplier(osg_SimulationTime); - for (int i = 0; i < positionCount; ++i) { + for (int i = 0; i < positionCount; ++i) + { float wavesize = wavesizeMultiplier * positions[i].z; float displace = clamp(2.0 * abs(length((positions[i].xy + offset) - gl_FragCoord.xy) / wavesize - 1.0), 0.0, 1.0); color.rg = mix(vec2(-1.0), color.rg, displace); diff --git a/files/shaders/core/ripples_blobber.comp b/files/shaders/core/ripples_blobber.comp index 86816ff03d..76c8afff60 100644 --- a/files/shaders/core/ripples_blobber.comp +++ b/files/shaders/core/ripples_blobber.comp @@ -20,7 +20,8 @@ void main() vec4 color = imageLoad(imageIn, texel); float wavesizeMultiplier = getTemporalWaveSizeMultiplier(osg_SimulationTime); - for (int i = 0; i < positionCount; ++i) { + for (int i = 0; i < positionCount; ++i) + { float wavesize = wavesizeMultiplier * positions[i].z; float displace = clamp(2.0 * abs(length((positions[i].xy + offset) - vec2(gl_GlobalInvocationID.xy)) / wavesize - 1.0), 0.0, 1.0); color.rg = mix(vec2(-1.0), color.rg, displace);