Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/ScreenSlanger. Easy to use utility to apply slang shaders to your macOS monitors.
Something went wrong. Try again.
436 B · 14 lines
at updates
1234567891011121314// A simple test shader for Slang in ScreenShaderfloat4 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;}