Merge branch 'main' into color-depth
This commit is contained in:
commit
97398ac569
2 changed files with 2 additions and 2 deletions
|
@ -161,7 +161,7 @@ void main() {
|
||||||
// pull previous buffer
|
// pull previous buffer
|
||||||
vec3 prev = texture2D(colortex1, texcoord).rgb;
|
vec3 prev = texture2D(colortex1, texcoord).rgb;
|
||||||
// interlace alternates between odd and even lines on world time
|
// interlace alternates between odd and even lines on world time
|
||||||
if(mod(int(gl_FragCoord.y / pixelSize), 2) == mod(worldTime, 2))
|
if(mod(int(gl_FragCoord.y / pixelSize), 2) == mod(frameCounter, 2))
|
||||||
gl_FragData[0] = vec4(prev, 1);
|
gl_FragData[0] = vec4(prev, 1);
|
||||||
else
|
else
|
||||||
gl_FragData[0] = vec4(final, 1);
|
gl_FragData[0] = vec4(final, 1);
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
uniform sampler2D colortex1;
|
uniform sampler2D colortex1;
|
||||||
const bool colortex1Clear = false;
|
const bool colortex1Clear = false;
|
||||||
|
|
||||||
uniform int worldTime;
|
uniform int frameCounter;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue