bring translucent shaders for nether and end up to speed

This commit is contained in:
Xonk
2023-08-02 21:43:18 -04:00
parent 7c5a4b39bd
commit cfc8722bc8
14 changed files with 862 additions and 654 deletions

View File

@ -7,6 +7,16 @@ uniform int frameCounter;
#include "/lib/util.glsl"
flat varying vec2 TAA_Offset;
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//////////////////////////////
@ -17,6 +27,11 @@ void main() {
gl_Position = ftransform();
tempOffsets = HaltonSeq2(frameCounter%10000);
TAA_Offset = offsets[frameCounter%8];
#ifndef TAA
TAA_Offset = vec2(0.0);
#endif
gl_Position.xy = (gl_Position.xy*0.5+0.5)*0.51*2.0-1.0;
}