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.