Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

fix(effects): Halation is red-orange again, and it and Corona are built-ins by name

Jareer0dd2b3b3093d
diff --git a/src/crates/concat-effects/packages/concat.corona/effect.toml b/src/crates/concat-effects/packages/concat.corona/effect.toml
index 1be1f6b6..393d777e 100644
--- a/src/crates/concat-effects/packages/concat.corona/effect.toml
+++ b/src/crates/concat-effects/packages/concat.corona/effect.toml
@@ -1,7 +1,7 @@
format = 2
[effect]
-id = "lab.corona"
+id = "concat.corona"
name = "Corona"
version = 1
kind = "effect"
diff --git a/src/crates/concat-effects/packages/concat.halation/effect.toml b/src/crates/concat-effects/packages/concat.halation/effect.toml
index 636fdf45..383fc91e 100644
--- a/src/crates/concat-effects/packages/concat.halation/effect.toml
+++ b/src/crates/concat-effects/packages/concat.halation/effect.toml
@@ -1,14 +1,14 @@
format = 2
[effect]
-id = "lab.halation"
+id = "concat.halation"
name = "Halation"
version = 2
kind = "effect"
category = "Film"
order = 150
intensity = "amount"
-aliases = ["lab-halation"]
+aliases = ["halation"]
description = "The red-orange halo film lays around its blown highlights, where light passes through the emulsion, scatters off the backing and comes back."
[[param]]
diff --git a/src/crates/concat-effects/packages/concat.halation/effect.wgsl b/src/crates/concat-effects/packages/concat.halation/effect.wgsl
index d6818216..06634e00 100644
--- a/src/crates/concat-effects/packages/concat.halation/effect.wgsl
+++ b/src/crates/concat-effects/packages/concat.halation/effect.wgsl
@@ -97,10 +97,8 @@ fn down(uv: vec2<f32>) -> vec4<f32> {
/// The halo's colour at a tint: negative the deep red of a dense negative,
/// positive the orange of a print, zero the red-orange of the stock.
fn halation_tint(t: f32) -> vec3<f32> {
- // LAB EXPERIMENT: red-orange stock swapped for a cyan halo, to prove
- // the package's own WGSL is what runs, not the built-in's.
- _ = t;
- return vec3<f32>(0.15, 0.75, 1.0);
+ let s = t / 100.0;
+ return vec3<f32>(1.0, 0.42 + 0.30 * s, 0.16 + 0.12 * s);
}
fn effect(uv: vec2<f32>) -> vec4<f32> {