Files
Eric Van Albert 0c9a00e703 More effects
2023-06-11 00:13:32 -04:00

8 lines
311 B
WebGPU Shading Language

#property description Invert the image colors
fn main(uv: vec2<f32>) -> vec4<f32> {
let fragColor = textureSample(iInputsTex[0], iSampler, uv);
let fragColor_rgb = mix(fragColor.rgb, fragColor.a - fragColor.rgb, iIntensity * pow(defaultPulse, 2.));
return vec4<f32>(fragColor_rgb, fragColor.a);
}