diff options
| author | Vasco <[email protected]> | 2026-08-24 03:53:16 +0100 |
|---|---|---|
| committer | Vasco <[email protected]> | 2026-08-24 03:53:16 +0100 |
| commit | ad5248a3e1bafc1b7dec4c8af82d56ed324ef314 (patch) | |
| tree | b575c3b85d6ad314fa9768855bed9aed8642917e /Fuse/demos/fuse.slang | |
| parent | 5dc2716abd43166cd65133625f408ad36a6623b3 (diff) | |
Slimed out podium. Updated math. Rend kinda works but still bugged.
Diffstat (limited to 'Fuse/demos/fuse.slang')
| -rw-r--r-- | Fuse/demos/fuse.slang | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Fuse/demos/fuse.slang b/Fuse/demos/fuse.slang deleted file mode 100644 index 837a3dc..0000000 --- a/Fuse/demos/fuse.slang +++ /dev/null @@ -1,31 +0,0 @@ -struct VertexInput { - [[vk::location(0)]] float2 pos : POSITION; - [[vk::location(1)]] float4 col : COLOR; -}; - -struct VertexOutput { - float4 col : COLOR; - float4 pos : SV_Position; -}; - -struct UBO { - float2 viewport; -}; - -[[vk::binding(0, 0)]] -ConstantBuffer<UBO> ubo; - -[shader("vertex")] -VertexOutput vertMain(VertexInput input) -{ - VertexOutput output; - output.col = input.col; - output.pos = float4(input.pos*2.0/ubo.viewport - 1.0, 0.0, 1.0); - return output; -} - -[shader("fragment")] -float4 fragMain(VertexOutput input) : SV_Target -{ - return input.col; -} |
