From 244357575774eedb8ac1ac1804b9350ab9008db8 Mon Sep 17 00:00:00 2001 From: Corbin Crutchley Date: Tue, 16 Dec 2025 20:45:24 -0800 Subject: [PATCH] chore: add example slang file --- simple-test.slang | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 simple-test.slang diff --git a/simple-test.slang b/simple-test.slang new file mode 100644 index 0000000..702bec7 --- /dev/null +++ b/simple-test.slang @@ -0,0 +1,14 @@ +// A simple test shader for Slang in ScreenShader + +float4 shaderFunction(ShaderInput input) { + // Sample the input texture + float4 color = input.sample(input.texCoord); + + // Create a simple wave effect based on time + float wave = sin(input.screenPosition.x * 0.02 + input.time * 2.0) * 0.5 + 0.5; + + // Tint the color based on the wave + color.rgb *= float3(wave, 1.0 - wave * 0.5, 1.0); + + return color; +} \ No newline at end of file -- 2.51.2