Particles are functional!
This commit is contained in:
parent
f8d5b98574
commit
2d0e856124
@ -9,5 +9,5 @@ out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(1.0, 0.0, 0.0, 1.0);// texture2D(texture, tex_coords) * color_part;
|
||||
FragColor = texture2D(texture, tex_coords) * color_part;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ smooth out vec2 tex_coords;
|
||||
flat out vec4 color_part;
|
||||
|
||||
void main() {
|
||||
//if(type_pass[0] != 0) {
|
||||
if(type_pass[0] != 0) {
|
||||
// This is not a generator particle
|
||||
|
||||
vec3 old_pos = gl_in[0].gl_Position.xyz;
|
||||
@ -50,5 +50,5 @@ void main() {
|
||||
EmitVertex();
|
||||
|
||||
EndPrimitive();
|
||||
//}
|
||||
}
|
||||
}
|
@ -15,6 +15,7 @@ void main()
|
||||
{
|
||||
gl_Position = vec4(position, 1.0);
|
||||
color_pass = color;
|
||||
size_pass = size;
|
||||
lifetime_pass = lifetime;
|
||||
size_pass = size;
|
||||
type_pass = type;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user