Indentation style changed to Allman

Using Artistic Style (http://astyle.sourceforge.net/)
Options:
--style=allman
--indent=tab
--keep-one-line-blocks
--align-pointer=type
--align-reference=name
This commit is contained in:
2014-04-11 20:56:19 +02:00
parent 34bcfbce08
commit 4c081d0e1c
56 changed files with 599 additions and 438 deletions
+7 -5
View File
@@ -2,7 +2,8 @@
layout(binding = 0) uniform sampler2D DepthTexture;
in VertexData {
in VertexData
{
vec3 Position;
vec2 TextureCoord;
} Input;
@@ -11,12 +12,13 @@ out vec4 FragmentColor;
float LinearizeDepth(float z)
{
float n = 0.1; // camera z near
float f = 800.0; // camera z far
return (2.0 * n) / (f + n - z * (f - n));
float n = 0.1; // camera z near
float f = 800.0; // camera z far
return (2.0 * n) / (f + n - z * (f - n));
}
void main() {
void main()
{
float z = texture(DepthTexture, Input.TextureCoord).x;
vec4 color = vec4(z, z, z, 0);