gedeng/Shader/particle_render.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

21 lines
443 B
GLSL

#version 430
layout (location = 0) in vec3 position;
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 color_pass;
out float lifetime_pass;
out float size_pass;
out float type_pass;
void main()
{
gl_Position = vec4(position, 1.0);
color_pass = color;
lifetime_pass = lifetime;
size_pass = size;
type_pass = type;
}