gedeng/Shader/particle_update.vs
karl 5637868200 Add draft for multiple particle types
The type was changed from int to float, because comparing the int to values (e.g. type == 1) never returned true...
2021-05-08 19:03:29 +02:00

24 lines
545 B
GLSL

#version 430
layout (location = 0) in vec3 position;
layout (location = 1) in vec3 velocity;
layout (location = 2) in vec3 color;
layout (location = 3) in float lifetime;
layout (location = 4) in float size;
layout (location = 5) in float type;
out vec3 position_pass;
out vec3 velocity_pass;
out vec3 color_pass;
out float lifetime_pass;
out float size_pass;
out float type_pass;
void main() {
position_pass = position;
velocity_pass = velocity;
color_pass = color;
lifetime_pass = lifetime;
size_pass = size;
type_pass = type;
}