Splitscreen (local coop)

  • MDYT
  • Topic Author
More
3 months 3 hours 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
2 months 4 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.

  • MDYT
  • Topic Author
More
3 hours 52 minutes ago #3 by MDYT Replied by MDYT on topic Splitscreen (local coop)
nope. i only realized how to check this only now

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

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.