Initial commit
This commit is contained in:
commit
ff25887f41
119 changed files with 24901 additions and 0 deletions
13
shader/transSimple.frag
Normal file
13
shader/transSimple.frag
Normal file
|
@ -0,0 +1,13 @@
|
|||
|
||||
uniform sampler2D frozenScene;
|
||||
uniform sampler2D currentScene;
|
||||
uniform float prog;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec2 texCoor = gl_TexCoord[0].st;
|
||||
vec4 newPixel = texture2D(currentScene, texCoor);
|
||||
vec4 oldPixel = texture2D(frozenScene, texCoor);
|
||||
|
||||
gl_FragColor = mix(oldPixel, newPixel, prog);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue