mirror of
https://github.com/zbanks/radiance.git
synced 2026-06-16 04:26:25 +02:00
8 lines
311 B
WebGPU Shading Language
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);
|
|
}
|