Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/assets/shaders/GLSL/geometryAtoms/inOut.geom

Diff revisions: vs.
  @@ -1,27 +1,25 @@
1 -
1 + #if defined(USE_GEOMETRY_STRIP_INPUT)
2 2 layout(triangles) in;
3 + #else
4 + layout(triangle_strip) in;
5 + #endif
3 6 layout (triangle_strip, max_vertices=3) out;
4 7
5 - in VertexData {
6 - vec2 texCoord;
7 - vec3 normal;
8 - } VertexIn[3];
9 -
10 - out VertexData {
11 - vec2 texCoord;
12 - vec3 normal;
13 - } VertexOut;
14 -
15 - void main()
16 - {
17 - for(int i = 0; i < gl_in.length(); i++)
18 - {
19 - // copy attributes
8 + in vec4 _vertexMV[];
9 + in vec3 _normalMV[];
10 + in vec3 _viewDirection[];
11 + in vec3 _lightDirection[MAX_LIGHT_COUNT][]; //<Light direction
12 + in vec4 _shadowCoord[MAX_SHADOW_CASTING_LIGHTS][];
13 + in float _attenuation[MAX_LIGHT_COUNT][];
14 +
15 + void main() {
16 + #if defined(USE_GEOMETRY_STRIP_INPUT)
17 + for(int i = 0; i < gl_in.length(); i++) {
18 + #else
19 + for(int i = 0; i < 3; i++) {
20 + #endif
20 21 gl_Position = gl_in[i].gl_Position;
21 - VertexOut.normal = VertexIn[i].normal;
22 - VertexOut.texCoord = VertexIn[i].texCoord;
23 -
24 - // done with the vertex
25 22 EmitVertex();
26 23 }
24 + EndPrimitive();
27 25 }