diff --git a/shaders/dimensions/composite3.vsh b/shaders/dimensions/composite3.vsh index d303a21..7e86429 100644 --- a/shaders/dimensions/composite3.vsh +++ b/shaders/dimensions/composite3.vsh @@ -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; diff --git a/shaders/dimensions/deferred.fsh b/shaders/dimensions/deferred.fsh index bcbcd75..fb08374 100644 --- a/shaders/dimensions/deferred.fsh +++ b/shaders/dimensions/deferred.fsh @@ -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 ///////////////////////////////