fix composite3 varying error.

This commit is contained in:
Xonk 2023-11-13 16:13:10 -05:00
parent 634be75b20
commit eabc47d999
2 changed files with 14 additions and 2 deletions

View File

@ -1,9 +1,18 @@
varying vec2 texcoord;
flat varying vec3 zMults;
uniform float far;
uniform float near;
flat varying vec2 TAA_Offset;
uniform int framemod8;
const vec2[8] offsets = vec2[8](vec2(1./8.,-3./8.),
vec2(-1.,3.)/8.,
vec2(5.0,1.)/8.,
vec2(-3,-5.)/8.,
vec2(-5.,5.)/8.,
vec2(-7.,-1.)/8.,
vec2(3,7.)/8.,
vec2(7.,-7.)/8.);
//////////////////////////////VOID MAIN//////////////////////////////
//////////////////////////////VOID MAIN//////////////////////////////
//////////////////////////////VOID MAIN//////////////////////////////
@ -12,6 +21,9 @@ uniform float near;
void main() {
TAA_Offset = offsets[framemod8];
zMults = vec3(1.0/(far * near),far+near,far-near);
gl_Position = ftransform();
texcoord = gl_MultiTexCoord0.xy;

View File

@ -92,7 +92,7 @@ void main() {
/* DRAWBUFFERS:4 */
gl_FragData[0] = vec4(0.0);
float mixhistory = 0.07;
float mixhistory = 0.06;
#ifdef OVERWORLD_SHADER
///////////////////////////////