22 lines
539 B
GLSL
Executable file
22 lines
539 B
GLSL
Executable file
uniform sampler2DRect particles0;
|
|
uniform sampler2DRect particles1;
|
|
uniform sampler2DRect particles2;
|
|
|
|
uniform sampler2DRect u_depth;
|
|
uniform sampler2DRect u_world;
|
|
uniform sampler2DRect u_v4l2cam;
|
|
uniform sampler2DRect imageTexture;
|
|
|
|
uniform vec3 uHottest0;
|
|
uniform vec3 uHottest1;
|
|
|
|
in vec2 texCoordVarying;
|
|
in float vTemperature;
|
|
in float vAge;
|
|
|
|
void main()
|
|
{
|
|
vec3 remapedColor = texture(imageTexture, vec2(vTemperature*1600, 0.5)).xyz;
|
|
float alpha = max(0, 1 - pow(vAge,4));
|
|
fragColor = vec4(remapedColor, alpha);
|
|
}
|