Last change
on this file since 12397 was
12115,
checked in by wiesep, 6 years ago
|
Changed folder structure, deletet some unused files and cleaned up code
|
File size:
742 bytes
|
Line | |
---|
1 | #version 150 |
---|
2 | |
---|
3 | in vec3 vertex; |
---|
4 | in float uv0; // Timer |
---|
5 | in float uv1; // Type |
---|
6 | in vec3 uv2; // Velocity |
---|
7 | // in float inTimer; |
---|
8 | // in float inType; |
---|
9 | // in vec3 inVelocity; |
---|
10 | |
---|
11 | |
---|
12 | out block { |
---|
13 | vec3 Pos; |
---|
14 | float Timer; |
---|
15 | float Type; |
---|
16 | vec3 Vel; |
---|
17 | } FireworkData; |
---|
18 | |
---|
19 | // out vec3 Pos; |
---|
20 | // out float Timer; |
---|
21 | // out float Type; |
---|
22 | // out vec3 Vel; |
---|
23 | |
---|
24 | //The vertex shader that prepares the fireworks for display |
---|
25 | void main() |
---|
26 | { |
---|
27 | FireworkData.Pos = vertex; |
---|
28 | FireworkData.Timer = uv0; |
---|
29 | FireworkData.Type = uv1; |
---|
30 | FireworkData.Vel = uv2; |
---|
31 | // Pos = vertex; |
---|
32 | // Timer = uv0; |
---|
33 | // Type = uv1; |
---|
34 | // Vel = uv2; |
---|
35 | |
---|
36 | // FireworkData.Pos = vertex; |
---|
37 | // FireworkData.Timer = 1; |
---|
38 | // FireworkData.Type = 8; |
---|
39 | // FireworkData.Vel = vec3(3, 3, 3); |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.