diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-08-27 10:12:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-27 10:12:24 +0200 |
commit | 3dc63a710f0ca845e6de9e8b4a2158a33743ad36 (patch) | |
tree | 7d8cfabb399fa0ebd547ce6224504b1149c25c8d /drivers/gles2/shaders/ssao.glsl | |
parent | ddfef86836be8e30709006ac30bc83007823468c (diff) | |
parent | 4226d56ca9ec91c4878d47e3bce4784e5edc3006 (diff) |
Merge pull request #21469 from akien-mga/glsl-clang-format
Style: Enable clang-format on GLSL shaders
Diffstat (limited to 'drivers/gles2/shaders/ssao.glsl')
-rw-r--r-- | drivers/gles2/shaders/ssao.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gles2/shaders/ssao.glsl b/drivers/gles2/shaders/ssao.glsl index 8dbe8c6ba9..82eea8f274 100644 --- a/drivers/gles2/shaders/ssao.glsl +++ b/drivers/gles2/shaders/ssao.glsl @@ -1,6 +1,8 @@ +/* clang-format off */ [vertex] layout(location = 0) in highp vec4 vertex_attrib; +/* clang-format on */ void main() { @@ -8,6 +10,7 @@ void main() { gl_Position.z = 1.0; } +/* clang-format off */ [fragment] #define TWO_PI 6.283185307179586476925286766559 @@ -53,6 +56,7 @@ const int ROTATIONS[] = int[]( 29, 21, 19, 27, 31, 29, 21, 18, 17, 29, 31, 31, 23, 18, 25, 26, 25, 23, 19, 34, 19, 27, 21, 25, 39, 29, 17, 21, 27); +/* clang-format on */ //#define NUM_SPIRAL_TURNS (7) const int NUM_SPIRAL_TURNS = ROTATIONS[NUM_SAMPLES - 1]; |