mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-22 08:42:50 +08:00
Latest Dev
its very scary to look at
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
#version 120
|
||||
#extension GL_EXT_gpu_shader4 : enable
|
||||
#define TAA
|
||||
|
||||
#include "lib/settings.glsl"
|
||||
|
||||
flat varying vec2 TAA_Offset;
|
||||
flat varying vec3 WsunVec;
|
||||
|
||||
@ -12,6 +14,7 @@ uniform vec3 sunPosition;
|
||||
uniform mat4 gbufferModelViewInverse;
|
||||
#include "/lib/util.glsl"
|
||||
#include "/lib/res_params.glsl"
|
||||
|
||||
const vec2[8] offsets = vec2[8](vec2(1./8.,-3./8.),
|
||||
vec2(-1.,3.)/8.,
|
||||
vec2(5.0,1.)/8.,
|
||||
@ -23,7 +26,7 @@ const vec2[8] offsets = vec2[8](vec2(1./8.,-3./8.),
|
||||
void main() {
|
||||
TAA_Offset = offsets[frameCounter%8];
|
||||
#ifndef TAA
|
||||
TAA_Offset = vec2(0.0);
|
||||
TAA_Offset = vec2(0.0);
|
||||
#endif
|
||||
gl_Position = ftransform();
|
||||
#ifdef TAA_UPSCALING
|
||||
@ -31,5 +34,4 @@ void main() {
|
||||
#endif
|
||||
|
||||
WsunVec = (float(sunElevation > 1e-5)*2-1.)*normalize(mat3(gbufferModelViewInverse) * sunPosition);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user