From 1f2937fad1d8cf86afd913e2415a6a377d303a54 Mon Sep 17 00:00:00 2001 From: Regalis Date: Wed, 18 May 2016 11:45:38 +0300 Subject: [PATCH] - opengl blur shader - the "heal" console command cancels stun - the camera shakes when the sub hits something only if controlled character is inside the sub --- Subsurface/Barotrauma.csproj | 3 --- Subsurface/Content/blurshader_opengl.xnb | Bin 0 -> 3795 bytes Subsurface/Source/Camera.cs | 2 +- Subsurface/Source/DebugConsole.cs | 1 + Subsurface/Source/Map/SubmarineBody.cs | 6 +++++- Subsurface/Source/Screens/GameScreen.cs | 5 +++++ 6 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 Subsurface/Content/blurshader_opengl.xnb diff --git a/Subsurface/Barotrauma.csproj b/Subsurface/Barotrauma.csproj index 181e4e0e0..0e6cb6166 100644 --- a/Subsurface/Barotrauma.csproj +++ b/Subsurface/Barotrauma.csproj @@ -987,9 +987,6 @@ - - PreserveNewest - PreserveNewest diff --git a/Subsurface/Content/blurshader_opengl.xnb b/Subsurface/Content/blurshader_opengl.xnb new file mode 100644 index 0000000000000000000000000000000000000000..800d3ef75b1013a1fa1d75ced518bd5d420010f2 GIT binary patch literal 3795 zcmd^?!EVzq9LAGP6Qa}Zl^ew3yrY2_s?P14Rw+L~lHFWJ>3oxG%@Nx*;?a(qpIb;4jk3_4>lKn9&M7%+p* z84RF7Ck+PFptA-8Y|v?g0XOKp!2ld|;%Fd_I&m}*N1Zqth@(y%4a89=jt1hW6GsDa z)QO{kIO@dFKpb`AXdsR{aWoJ|Nqn9^u{WNCgyX(^6=D@M9>1i~C`+d4DVg;c<3ri9 zkUG=4bJMic!g_UQ6b?j`k9sU*T!!70(V;W;XtcFmt$eCh?h7wocW0MQSK9g@FQ3TE zsjL-NnL;!tWG15=_qWviYEq=SZZE1-rSmu&tmV!`nK!GkGaKcYw}C&|$gWE^at<8k zK27DbolRV2w3_vTA)24-u7>SG!$!G=yM=~3("blurshader_opengl"); +#else var blurEffect = content.Load("blurshader"); +#endif + lightBlur = new BlurEffect(blurEffect, 0.001f, 0.001f);