From 3c45a66eebe538172f42552ccb6ee290f7c90640 Mon Sep 17 00:00:00 2001 From: siimav Date: Tue, 7 Dec 2021 02:46:22 +0200 Subject: [PATCH] Fix clip planes for OpenGL --- .../Plugins/RealSolarSystem.dll | Bin 35840 -> 36352 bytes GameData/RealSolarSystem/Readme_RSS.txt | 6 +- GameData/RealSolarSystem/RealSolarSystem.cfg | 12 +++- .../RealSolarSystem/RealSolarSystem.version | 2 +- Source/Properties/AssemblyInfo.cs | 4 +- Source/Watchdogs.cs | 54 +++++++++++------- 6 files changed, 52 insertions(+), 26 deletions(-) diff --git a/GameData/RealSolarSystem/Plugins/RealSolarSystem.dll b/GameData/RealSolarSystem/Plugins/RealSolarSystem.dll index 1e16e87ed0bc76f8eb2fc62a8521ed43a8303cf1..533c3eb2bfe3497604542e5e95b7546ad8d1baee 100644 GIT binary patch delta 6560 zcmcIod3Y36wm1z>a7zT8LE%Fbed79l_jVIdXZ-8E&X-@E-#O== zbMC2IRky0`9^ST&-?1#=rLB)eDE|9|Qj+X^IMK2@*MDl%ErmJ>|I5sKSteUy?qlQi zsxl(Sm0d2*Gg+tU9arj@VI}`lsWv??Ln^(QpucZ*RJ@403qVj0*YW3MfM$`2o zlN*7vuCX>nL410BG7LkkmU@p+2Ox;VKQuP26|R;axE7qk+|PSoY`^R^7|th*ZtKlB z%i6U6=Q94l*mUft8MC72(_L)LtUaIW``%PnS({Q5We1AB*3yrwg z=(V7)L?d&(n%7eAm3_k4cmZC^%IQQ5EDtS}a@x#yA*S^Qc=Zco^?IKen-#h+RzE*B zw|DG?p=xNBU-hcC-_;f+e`l`F9_jOolV#QG132RJE3HBE?d+VqHxN-~)9a5TPHO_p z^&vn8`G@N?6vg+!$>C|4uyXvGs?Bl3E3ObrqF^Pgy!8^SNS~JWG90q7mN1(zjJ!4N zCwegl-kSasz1Mty_^gciVQS#58Df2JhnO}K0cC0Lrur>SA6>AHH>-0pSs(L`oKjY4 zzLhgjPekCAtM1C}K56aoxT)SN^hc~dmriS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@YYW^ASv%Jj2iyGe{&cRon ztFQozypxCzdKVDadH3USJmEctrKt6uz!vQH3ZZ15*n-!*g<3A5e9T*;h~qSF@_$Nskgaf(bCS3t?@QwQ8mlZNKN-0K0} zPDF|M$*4#2PYZ(?Lzx$9zp7M!Zk+o#JihR}a{kk1y~*Rzw?9WhnLiEhpSX=jDs{HG z@UuEIaKyxxwId$(w0wU|d!r?DW3$mR?0X{}F*D=d-MMA= 0) { cam.nearClipPlane = nearClip; - Debug.Log($"[RealSolarSystem] Watchdog: Setting camera {cam.name} near clip to {nearClip} so camera now has {cam.nearClipPlane}"); } if (farClip > 0) { cam.farClipPlane = farClip; - Debug.Log($"[RealSolarSystem] Watchdog: Setting camera {cam.name} far clip to {farClip} so camera now has {cam.farClipPlane}"); } }