//UNFOLDED CRYSTAL SHADER (DARK) - @sammtza___
gradient(2)
.diff(gradient(1).r([0, 10].smooth()))
.diff(gradient(-1).g([0, 10].smooth().fast(1 / 2)))
.diff(gradient(1).b([0, 10].smooth().fast(1 / 4)))
.diff(gradient(-1).a([0, 10].smooth().fast(1 / 8)))
.diff(
gradient(1).luma(
[0, 1 / 2]
.reverse()
.smooth()
.fast(1 / 3)
)
)
.diff(
gradient(1).thresh(
[0, 1 / 2]
.reverse()
.smooth()
.fast(1 / 5)
)
)
.diff(
gradient(1).hue(
() => Math.sin(time),
() => Math.cos(time),
() => Math.tan(time)
)
)
.scale(1 / 10)
.blend(src(o0).rotate(-0.1, -0.1)
, [1 / 2, 9 / 10].smooth())
.add(
src(o0).rotate(0.1, 0.1).scale(-0.996)
,
[1 / 2, 9 / 10].reverse().smooth()
,-1)
.invert()
.out()
//MATRIZ IRIDISCENCIA
src(o1)
.scale(1.005)
.scrollX(
[0.002, 0.002, 0.002, 0.002, -0.002, -0.002, -0.002, -0.002].ease("linear")
)
.saturate(1.2)
.hue(()=>Math.sin(time))
.luma([0, 0, 0.1, 0.1].ease("linear"))
.layer(src(o0).contrast(1.4).luma(0.2, 0.1))
.out(o1)
render(o0)