2020-10-20 12:02:10 +00:00
|
|
|
uniform mat4 modelViewProjectionMatrix;
|
|
|
|
uniform sampler2DRect particles0;
|
|
|
|
uniform sampler2DRect particles1;
|
|
|
|
uniform sampler2DRect particles2;
|
|
|
|
|
|
|
|
in vec4 position;
|
|
|
|
in vec2 texcoord;
|
|
|
|
|
|
|
|
out vec2 texCoordVarying;
|
2020-10-26 11:22:40 +00:00
|
|
|
out vec3 vPos;
|
2020-10-20 12:50:26 +00:00
|
|
|
out float vTemperature;
|
2020-10-20 12:55:48 +00:00
|
|
|
out float vAge;
|
2020-10-20 12:02:10 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
texCoordVarying = texcoord;
|
2020-10-20 12:55:48 +00:00
|
|
|
vec4 misc = texture(particles2, texCoordVarying);
|
|
|
|
vTemperature = misc.x;
|
|
|
|
vAge = misc.y;
|
2020-10-26 11:22:40 +00:00
|
|
|
vPos = texture(particles0, texCoordVarying).xyz;
|
|
|
|
gl_Position = modelViewProjectionMatrix * vec4(vPos, 1.0);
|
2020-10-20 12:02:10 +00:00
|
|
|
}
|