libobs: Add DrawOpaque for rect effect

Needed by Syphon Client.
master
jpark37 2021-06-15 00:38:11 -07:00 committed by Jim
parent 5e44e6412a
commit b70161bc67
1 changed files with 14 additions and 0 deletions

View File

@ -25,6 +25,11 @@ float4 PSDrawBare(VertInOut vert_in) : TARGET
return image.Sample(def_sampler, vert_in.uv);
}
float4 PSDrawOpaque(VertInOut vert_in) : TARGET
{
return float4(image.Sample(def_sampler, vert_in.uv).rgb, 1.0);
}
technique Draw
{
pass
@ -33,3 +38,12 @@ technique Draw
pixel_shader = PSDrawBare(vert_in);
}
}
technique DrawOpaque
{
pass
{
vertex_shader = VSDefault(vert_in);
pixel_shader = PSDrawOpaque(vert_in);
}
}