diff options
| author | 3gg <3gg@shellblade.net> | 2025-12-02 16:39:36 -0800 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-12-02 16:39:36 -0800 |
| commit | 6c8ae19be66cee247980a48e736a4e05d14de179 (patch) | |
| tree | d860767907bf0cbe17ec66422e11bea700cf56d9 /dxg/shaders/imm.hlsl | |
| parent | 8f594c8ebd11f0e5f8a0c6369c3fe7383d250cbe (diff) | |
Diffstat (limited to 'dxg/shaders/imm.hlsl')
| -rw-r--r-- | dxg/shaders/imm.hlsl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dxg/shaders/imm.hlsl b/dxg/shaders/imm.hlsl new file mode 100644 index 0000000..da6b1f6 --- /dev/null +++ b/dxg/shaders/imm.hlsl | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | struct VertexIn { | ||
| 2 | float3 position : POSITION; | ||
| 3 | }; | ||
| 4 | |||
| 5 | struct VertexOut { | ||
| 6 | float4 position : SV_POSITION; | ||
| 7 | }; | ||
| 8 | |||
| 9 | struct PixelOut { | ||
| 10 | float4 color : SV_TARGET; | ||
| 11 | }; | ||
| 12 | |||
| 13 | VertexOut vs(VertexIn vin) { | ||
| 14 | VertexOut vout; | ||
| 15 | vout.position = float4(vin.position, 1.0f); | ||
| 16 | return vout; | ||
| 17 | } | ||
| 18 | |||
| 19 | PixelOut ps(VertexOut vout) { | ||
| 20 | PixelOut pixel; | ||
| 21 | pixel.color = float4(0.9f, 0.2f, 0.9f, 1.0f); | ||
| 22 | return pixel; | ||
| 23 | } | ||
