Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 170 vs 263 for /trunk/assets/shaders/GLSL/bright.glsl

Diff revisions: vs.
  @@ -1,9 +1,34 @@
1 1 -- Vertex
2 - #include "vertexDefault.vert"
3 2
4 3 void main(void)
5 4 {
6 - computeData();
5 + }
6 +
7 + -- Geometry
8 +
9 + layout(points) in;
10 + layout(triangle_strip, max_vertices = 4) out;
11 +
12 + out vec2 _texCoord;
13 +
14 + void main() {
15 + gl_Position = vec4(1.0, 1.0, 0.0, 1.0);
16 + _texCoord = vec2(1.0, 1.0);
17 + EmitVertex();
18 +
19 + gl_Position = vec4(-1.0, 1.0, 0.0, 1.0);
20 + _texCoord = vec2(0.0, 1.0);
21 + EmitVertex();
22 +
23 + gl_Position = vec4(1.0, -1.0, 0.0, 1.0);
24 + _texCoord = vec2(1.0, 0.0);
25 + EmitVertex();
26 +
27 + gl_Position = vec4(-1.0, -1.0, 0.0, 1.0);
28 + _texCoord = vec2(0.0, 0.0);
29 + EmitVertex();
30 +
31 + EndPrimitive();
7 32 }
8 33
9 34 -- Fragment