source:
data/branches/Shader_HS18/programs/Example/GLSL150/ParticleGS_GenerateVS.glsl
@
12083
Last change on this file since 12083 was 12083, checked in by wiesep, 5 years ago | |
---|---|
File size: 403 bytes |
Line | |
---|---|
1 | #version 150 |
2 | |
3 | in vec4 vertex; |
4 | uniform float inTimer; |
5 | uniform float inType; |
6 | uniform vec3 inVelocity; |
7 | |
8 | out block { |
9 | vec4 Pos; |
10 | float Timer; |
11 | float Type; |
12 | vec3 Vel; |
13 | } FireworkData; |
14 | |
15 | //The vertex shader that prepares the fireworks for display |
16 | void main() |
17 | { |
18 | FireworkData.Pos = vertex; |
19 | FireworkData.Timer = inTimer; |
20 | FireworkData.Type = inType; |
21 | FireworkData.Vel = inVelocity; |
22 | } |
Note: See TracBrowser
for help on using the repository browser.