Indentation style changed to Horstmann

This commit is contained in:
2014-04-11 21:53:05 +02:00
parent e70e18a27b
commit f2259f712d
61 changed files with 353 additions and 697 deletions
+4 -8
View File
@@ -6,24 +6,20 @@ layout(triangles) in;
layout(line_strip, max_vertices = 6) out;
in VertexData
{
vec3 Position;
{ vec3 Position;
vec3 Normal;
vec2 TextureCoord;
} Input[3];
out VertexData
{
vec3 Position;
{ vec3 Position;
vec3 Normal;
vec2 TextureCoord;
} Output;
void main()
{
for (int i = 0; i < gl_in.length(); i++)
{
gl_Position = MVP * vec4(Input[i].Position, 1.0);
{ for (int i = 0; i < gl_in.length(); i++)
{ gl_Position = MVP * vec4(Input[i].Position, 1.0);
EmitVertex();
gl_Position = MVP * vec4(Input[i].Position + Input[i].Normal, 1.0);
EmitVertex();