2020-10-20 12:02:10 +00:00
|
|
|
uniform sampler2DRect particles0;
|
|
|
|
uniform sampler2DRect particles1;
|
|
|
|
uniform sampler2DRect particles2;
|
|
|
|
|
|
|
|
uniform sampler2DRect u_depth;
|
|
|
|
uniform sampler2DRect u_world;
|
|
|
|
uniform sampler2DRect u_v4l2cam;
|
|
|
|
uniform sampler2DRect imageTexture;
|
|
|
|
|
|
|
|
in vec2 texCoordVarying;
|
2020-10-20 12:50:26 +00:00
|
|
|
in float vTemperature;
|
2020-10-20 12:55:48 +00:00
|
|
|
in float vAge;
|
2020-10-20 12:02:10 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2020-10-20 17:26:29 +00:00
|
|
|
// fragColor = vec4(1);//vec4(texture(u_world, texCoordVarying.st).rgb,1);
|
2020-10-20 12:02:10 +00:00
|
|
|
// fragColor = vec4(texCoordVarying.st/100,1.0,1.0);//vec4(texture(u_world, texCoordVarying.st).rgb,1);
|
2020-10-20 12:50:26 +00:00
|
|
|
// fragColor = vec4(texture(u_v4l2cam, texCoordVarying.st).rgb,1);
|
2020-10-20 19:22:48 +00:00
|
|
|
fragColor = vec4(texture(imageTexture, vec2(vTemperature*1600, 0.5)).xyz,max(0, 1 - pow(vAge,4)));
|
2020-10-20 12:02:10 +00:00
|
|
|
}
|