mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-16 14:22:28 +00:00
13 lines
No EOL
420 B
HLSL
13 lines
No EOL
420 B
HLSL
min16float4 main(ShaderInput input) : SV_TARGET
|
|
{
|
|
min16float3 yuv = min16float3(luminancePlane.Sample(theSampler, input.tex),
|
|
chrominancePlane.Sample(theSampler, input.tex));
|
|
|
|
// Subtract the YUV offset for limited vs full range
|
|
yuv -= offsets;
|
|
|
|
// Multiply by the conversion matrix for this colorspace
|
|
yuv = mul(yuv, cscMatrix);
|
|
|
|
return min16float4(yuv, 1.0);
|
|
} |