17 lines
439 B
GLSL
Executable file
17 lines
439 B
GLSL
Executable file
uniform mat4 modelViewProjectionMatrix;
|
|
uniform sampler2DRect particles0;
|
|
uniform sampler2DRect particles1;
|
|
uniform sampler2DRect particles2;
|
|
|
|
in vec4 position;
|
|
in vec2 texcoord;
|
|
|
|
out vec2 texCoordVarying;
|
|
out float vTemperature;
|
|
|
|
void main()
|
|
{
|
|
texCoordVarying = texcoord;
|
|
vTemperature = texture(particles2, texCoordVarying).x;
|
|
gl_Position = modelViewProjectionMatrix * vec4(texture(particles0, texCoordVarying).xyz, 1.0);
|
|
}
|