Properly reapply HD3000 particle fix
This commit is contained in:
parent
e77b5dddeb
commit
dea23d7a69
@ -1,3 +1,4 @@
|
||||
#if __VERSION__ >= 330
|
||||
layout(location=0) in vec3 Position;
|
||||
layout(location = 1) in float lifetime;
|
||||
layout(location = 2) in float size;
|
||||
@ -7,6 +8,17 @@ layout(location = 4) in vec2 quadcorner;
|
||||
|
||||
layout(location = 5) in vec3 rotationvec;
|
||||
layout(location = 6) in float anglespeed;
|
||||
#else
|
||||
in vec3 Position;
|
||||
in float lifetime;
|
||||
in float size;
|
||||
|
||||
in vec2 Texcoord;
|
||||
in vec2 quadcorner;
|
||||
|
||||
in vec3 rotationvec;
|
||||
float anglespeed;
|
||||
#endif
|
||||
|
||||
out float lf;
|
||||
out vec2 tc;
|
||||
|
@ -217,6 +217,8 @@ void setAttribute(AttributeType Tp, GLuint ProgramID)
|
||||
glBindAttribLocation(ProgramID, 1, "lifetime");
|
||||
glBindAttribLocation(ProgramID, 2, "size");
|
||||
glBindAttribLocation(ProgramID, 4, "quadcorner");
|
||||
glBindAttribLocation(ProgramID, 5, "rotationvec");
|
||||
glBindAttribLocation(ProgramID, 6, "anglespeed");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user