From 31bbc062b71fb5a8bcf3d4c1bf8ffacb0fe3926b Mon Sep 17 00:00:00 2001 From: MikiP98 <79966387+MikiP98@users.noreply.github.com> Date: Sat, 16 Nov 2024 21:39:26 +0100 Subject: [PATCH] Revert "fix world curvature on DH LODS" This reverts commit ebbd25cd27ba85e8d515a19a38e97e8d0272e8ba. --- shaders/dimensions/DH_solid.vsh | 18 +----------------- shaders/dimensions/DH_translucent.fsh | 3 +-- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/shaders/dimensions/DH_solid.vsh b/shaders/dimensions/DH_solid.vsh index bd19765..38e1e37 100644 --- a/shaders/dimensions/DH_solid.vsh +++ b/shaders/dimensions/DH_solid.vsh @@ -63,23 +63,7 @@ void main() { vec4 viewPos = gl_ModelViewMatrix * vPos; 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; - #endif - - - - + gl_Position = dhProjection * viewPos; #ifdef TAA_UPSCALING diff --git a/shaders/dimensions/DH_translucent.fsh b/shaders/dimensions/DH_translucent.fsh index 1a52519..3b89972 100644 --- a/shaders/dimensions/DH_translucent.fsh +++ b/shaders/dimensions/DH_translucent.fsh @@ -5,9 +5,8 @@ #include "/lib/projections.glsl" #ifdef OVERWORLD_SHADER - #define WATER_SUN_SPECULAR +#define WATER_SUN_SPECULAR #endif - uniform vec2 texelSize; // uniform int moonPhase; uniform float frameTimeCounter;