mirror of
https://github.com/dpiponi/Stellarator.git
synced 2024-06-01 02:37:48 -04:00
17 lines
384 B
GLSL
17 lines
384 B
GLSL
#version 110
|
|
|
|
uniform sampler2D current_frame;
|
|
uniform sampler2D last_frame;
|
|
uniform sampler1D table;
|
|
uniform float alpha;
|
|
varying vec2 texcoord;
|
|
|
|
void main()
|
|
{
|
|
|
|
vec4 current_index = texture2D(current_frame, texcoord);
|
|
vec4 last_index = texture2D(last_frame, texcoord);
|
|
gl_FragColor = alpha*texture1D(table, current_index.x)+(1.0-alpha)*texture1D(table, last_index.x);
|
|
}
|
|
|