From 0be6d925dc3c6413bce7a3ccb49631b8e4a6e67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 14 May 2020 13:23:58 +0200 Subject: Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027. --- drivers/gles2/shaders/subsurf_scattering.glsl | 3 --- 1 file changed, 3 deletions(-) (limited to 'drivers/gles2/shaders/subsurf_scattering.glsl') diff --git a/drivers/gles2/shaders/subsurf_scattering.glsl b/drivers/gles2/shaders/subsurf_scattering.glsl index f40fb3a244..d0c34cf1b0 100644 --- a/drivers/gles2/shaders/subsurf_scattering.glsl +++ b/drivers/gles2/shaders/subsurf_scattering.glsl @@ -8,7 +8,6 @@ layout(location = 4) in vec2 uv_in; out vec2 uv_interp; void main() { - uv_interp = uv_in; gl_Position = vertex_attrib; } @@ -102,7 +101,6 @@ uniform sampler2D source_depth; //texunit:2 layout(location = 0) out vec4 frag_color; void main() { - float strength = texture(source_sss, uv_interp).r; strength *= strength; //stored as sqrt @@ -110,7 +108,6 @@ void main() { vec4 base_color = texture(source_diffuse, uv_interp); if (strength > 0.0) { - // Fetch linear depth of current pixel: float depth = texture(source_depth, uv_interp).r * 2.0 - 1.0; #ifdef USE_ORTHOGONAL_PROJECTION -- cgit v1.2.3