diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-08-24 15:17:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-24 15:17:38 +0200 |
commit | 1ae7a78d8b7566c8421dda4a061e10c8278f7760 (patch) | |
tree | b3c660b904a634244f4b8f1a981b5cd0837307b3 /drivers/gles2/shaders/stdlib.glsl | |
parent | cf217627c7b31dfce5b142351dbd93184a96db5c (diff) | |
parent | e68b96928bbc9814519534acd89003db33279858 (diff) |
Merge pull request #21364 from akien-mga/shaders-style
Style: Fix code formatting in GLSL shaders
Diffstat (limited to 'drivers/gles2/shaders/stdlib.glsl')
-rw-r--r-- | drivers/gles2/shaders/stdlib.glsl | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/gles2/shaders/stdlib.glsl b/drivers/gles2/shaders/stdlib.glsl index 8b30e097e6..6bc81a22d8 100644 --- a/drivers/gles2/shaders/stdlib.glsl +++ b/drivers/gles2/shaders/stdlib.glsl @@ -1,6 +1,5 @@ -vec2 select2(vec2 a, vec2 b, bvec2 c) -{ +vec2 select2(vec2 a, vec2 b, bvec2 c) { vec2 ret; ret.x = c.x ? b.x : a.x; @@ -9,8 +8,7 @@ vec2 select2(vec2 a, vec2 b, bvec2 c) return ret; } -vec3 select3(vec3 a, vec3 b, bvec3 c) -{ +vec3 select3(vec3 a, vec3 b, bvec3 c) { vec3 ret; ret.x = c.x ? b.x : a.x; @@ -20,8 +18,7 @@ vec3 select3(vec3 a, vec3 b, bvec3 c) return ret; } -vec4 select4(vec4 a, vec4 b, bvec4 c) -{ +vec4 select4(vec4 a, vec4 b, bvec4 c) { vec4 ret; ret.x = c.x ? b.x : a.x; @@ -32,9 +29,7 @@ vec4 select4(vec4 a, vec4 b, bvec4 c) return ret; } - -highp vec4 texel2DFetch(highp sampler2D tex, ivec2 size, ivec2 coord) -{ +highp vec4 texel2DFetch(highp sampler2D tex, ivec2 size, ivec2 coord) { float x_coord = float(2 * coord.x + 1) / float(size.x * 2); float y_coord = float(2 * coord.y + 1) / float(size.y * 2); |