aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph/d3d12/shaders/stencilclip.hlsl
blob: 9aff84d2619307dfcafb7c0ca7508df8cbad9b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
struct VSInput
{
    float4 position : POSITION;
};

cbuffer ConstantBuffer : register(b0)
{
    float4x4 mvp;
};

struct PSInput
{
    float4 position : SV_POSITION;
};

PSInput VS_StencilClip(VSInput input)
{
    PSInput result;
    result.position = mul(mvp, input.position);
    return result;
}

float4 PS_StencilClip(PSInput input) : SV_TARGET
{
    return float4(0.81, 0.83, 0.12, 1.0); // Trolltech green ftw!
}