diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-08-27 07:31:48 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-08-27 07:34:14 +0200 |
commit | 4226d56ca9ec91c4878d47e3bce4784e5edc3006 (patch) | |
tree | 92a34cf9488067658e5f32da6d48bd5869a40c6b /drivers/gles3/shaders/canvas_shadow.glsl | |
parent | db55d8a4b6ad6c14f2131e02b50689eb8380276f (diff) |
Style: Enable clang-format on GLSL shaders
As of clang-format 6.0.1, putting the `/* clang-format off */` hint
around our "invalid" `[vertex]` and `[shader]` statements isn't enough
to prevent a bogus indent of the next comments and first valid statement,
so we need to enclose that first valid statement in the unformatted chunk.
Diffstat (limited to 'drivers/gles3/shaders/canvas_shadow.glsl')
-rw-r--r-- | drivers/gles3/shaders/canvas_shadow.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gles3/shaders/canvas_shadow.glsl b/drivers/gles3/shaders/canvas_shadow.glsl index b06e9076d9..68d0713385 100644 --- a/drivers/gles3/shaders/canvas_shadow.glsl +++ b/drivers/gles3/shaders/canvas_shadow.glsl @@ -1,6 +1,8 @@ +/* clang-format off */ [vertex] uniform highp mat4 projection_matrix; +/* clang-format on */ uniform highp mat4 light_matrix; uniform highp mat4 world_matrix; uniform highp float distance_norm; @@ -15,9 +17,11 @@ void main() { position_interp = gl_Position; } +/* clang-format off */ [fragment] in highp vec4 position_interp; +/* clang-format on */ #ifdef USE_RGBA_SHADOWS layout(location = 0) out lowp vec4 distance_buf; |