Splitscreen (local coop)

  • MDYT
  • Topic Author
More
1 month 3 weeks ago #1 by MDYT Splitscreen (local coop) was created by MDYT
Im curious is it a way of using local coop. By local coop i mean like game having 2 halves of a screen on 1 window. right now i tried it with l4d2, the shaders like ssr and mxao didnt work, maybe there is a way

Please Log in or Create an account to join the conversation.

  • JoeRS3.2
More
1 month 3 weeks ago #2 by JoeRS3.2 Replied by JoeRS3.2 on topic Splitscreen (local coop)
This?

#include "ReShade.fxh"
#include "ReShadeUI.fxh"

float3 SBS_SplitScreenPS(float4 vois : SV_Position, float2 texcoord : TexCoord) : SV_Target
{


    float2 res = float2(texcoord.x, texcoord.y);
    float3 bt = tex2D(ReShade::BackBuffer, float2(res.x/0.5-0, res.y)).rgb;

    float3 cl = tex2D(ReShade::BackBuffer, float2(res.x/0.5-1, res.y/0.5-0)).rgb;
    float3 cr = tex2D(ReShade::BackBuffer, float2(res.x/0.5-1, res.y/0.5-1)).rgb;


if(res.x < 0.5)
{

return bt;

}


if(res.x > 0.5)
if(res.y < 0.5) //top right
{

return cl;

}

if(res.y > 0.5);//bottom right

{

return cr;

}



}
      //////////////
     /// OUTPUT ///
    //////////////

technique SBS_SplitScreen

{

    
        pass
    {
        VertexShader = PostProcessVS;
        PixelShader = SBS_SplitScreenPS;
    }



}

Please Log in or Create an account to join the conversation.