mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-22 17:47:34 +08:00
Revert "fix world curvature on DH LODS"
This reverts commit ebbd25cd27
.
This commit is contained in:
parent
13feffe317
commit
31bbc062b7
@ -63,23 +63,7 @@ void main() {
|
|||||||
|
|
||||||
vec4 viewPos = gl_ModelViewMatrix * vPos;
|
vec4 viewPos = gl_ModelViewMatrix * vPos;
|
||||||
localPos = gbufferModelViewInverse * viewPos;
|
localPos = gbufferModelViewInverse * viewPos;
|
||||||
|
|
||||||
#ifdef PLANET_CURVATURE
|
|
||||||
vec4 worldPos = localPos;
|
|
||||||
|
|
||||||
float curvature = length(worldPos) / (16*8);
|
|
||||||
worldPos.y -= curvature*curvature * CURVATURE_AMOUNT;
|
|
||||||
|
|
||||||
worldPos = gbufferModelView * worldPos;
|
|
||||||
|
|
||||||
gl_Position = dhProjection * worldPos;
|
|
||||||
#else
|
|
||||||
gl_Position = dhProjection * viewPos;
|
gl_Position = dhProjection * viewPos;
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef TAA_UPSCALING
|
#ifdef TAA_UPSCALING
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#ifdef OVERWORLD_SHADER
|
#ifdef OVERWORLD_SHADER
|
||||||
#define WATER_SUN_SPECULAR
|
#define WATER_SUN_SPECULAR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uniform vec2 texelSize;
|
uniform vec2 texelSize;
|
||||||
// uniform int moonPhase;
|
// uniform int moonPhase;
|
||||||
uniform float frameTimeCounter;
|
uniform float frameTimeCounter;
|
||||||
|
Loading…
Reference in New Issue
Block a user