From 244a9d67561bcf59e0156e1e7525ce6bd70771a7 Mon Sep 17 00:00:00 2001 From: v_lasser Date: Wed, 15 Mar 2023 09:42:21 +0100 Subject: [PATCH] removing parity check for cam pos --- shaders/quad.fs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/shaders/quad.fs b/shaders/quad.fs index 86a0ce5..9fff144 100644 --- a/shaders/quad.fs +++ b/shaders/quad.fs @@ -92,16 +92,12 @@ void main(){ float pan=MousePos.x/180.; float tilt=MousePos.y/180.; //tilt=max(min(tilt,3.14*.45),-3.14*.45); - int parity = int(tilt/3.14-.5); - if(parity%2==1){ - pan+=3.14; - } vec3 ez = vec3(cos(tilt)*sin(pan),sin(tilt),cos(tilt)*cos(pan));//normalize(lookingAt-posCam);////base orthonormée vec3 ex = normalize(cross(ez,vec3(0.,1.,0.))); vec3 ey = cross(ex,ez); - vec3 dir = normalize(FragCoord.x * ex + FragCoord.y*ey + 1.*ez); + vec3 dir = normalize(FragCoord.x * ex + FragCoord.y*ey + 1.5*ez); //float c=Mandel(FragCoord*1.5);