{"history":[{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"custom","usesPingPong":false,"texture":false,"textures":[],"animating":true,"mouseMomentum":1,"mouseSpring":0.39,"isMask":0,"description":"Pixel art day-to-night sky with a setting sun, sunset color transition, rising crescent moon, and twinkling stars.","compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform vec2 uResolution;\nuniform vec2 uMousePos;\nuniform float uTime;uniform float uNightProgress;vec3 blend (int blendMode, vec3 src, vec3 dst) {\nif(blendMode == 0) {\nreturn src;\n}\nif(blendMode == 1) {\nreturn src + dst;\n}\nif(blendMode == 2) {\nreturn src - dst;\n}\nif(blendMode == 3) {\nreturn src * dst;\n}\nif(blendMode == 4) {\nreturn 1. - (1. - src) * (1. - dst);\n}\nif(blendMode == 5) {\nreturn vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)), (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)), (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n}\nif(blendMode == 6) {\nreturn min(src, dst);\n}\nif(blendMode == 7) {\nreturn max(src, dst);\n}\nif(blendMode == 8) {\nreturn vec3((src.x == 1.0) ? 1.0 : min(1.0, dst.x / (1.0 - src.x)), (src.y == 1.0) ? 1.0 : min(1.0, dst.y / (1.0 - src.y)), (src.z == 1.0) ? 1.0 : min(1.0, dst.z / (1.0 - src.z)));\n}\nif(blendMode == 9) {\nreturn vec3((src.x == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.x) / src.x)), (src.y == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.y) / src.y)), (src.z == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.z) / src.z)));\n}\nif(blendMode == 10) {\nreturn (src + dst) - 1.0;\n}\nif(blendMode == 11) {\nreturn vec3((src.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - src.x) * (1.0 - dst.x)), (src.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - src.y) * (1.0 - dst.y)), (src.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - src.z) * (1.0 - dst.z)));\n}\nif(blendMode == 12) {\nreturn vec3((src.x <= 0.5) ? (dst.x - (1.0 - 2.0 * src.x) * dst.x * (1.0 - dst.x)) : (((src.x > 0.5) && (dst.x <= 0.25)) ? (dst.x + (2.0 * src.x - 1.0) * (4.0 * dst.x * (4.0 * dst.x + 1.0) * (dst.x - 1.0) + 7.0 * dst.x)) : (dst.x + (2.0 * src.x - 1.0) * (sqrt(dst.x) - dst.x))), (src.y <= 0.5) ? (dst.y - (1.0 - 2.0 * src.y) * dst.y * (1.0 - dst.y)) : (((src.y > 0.5) && (dst.y <= 0.25)) ? (dst.y + (2.0 * src.y - 1.0) * (4.0 * dst.y * (4.0 * dst.y + 1.0) * (dst.y - 1.0) + 7.0 * dst.y)) : (dst.y + (2.0 * src.y - 1.0) * (sqrt(dst.y) - dst.y))), (src.z <= 0.5) ? (dst.z - (1.0 - 2.0 * src.z) * dst.z * (1.0 - dst.z)) : (((src.z > 0.5) && (dst.z <= 0.25)) ? (dst.z + (2.0 * src.z - 1.0) * (4.0 * dst.z * (4.0 * dst.z + 1.0) * (dst.z - 1.0) + 7.0 * dst.z)) : (dst.z + (2.0 * src.z - 1.0) * (sqrt(dst.z) - dst.z))));\n}\nif(blendMode == 13) {\nreturn abs(dst - src);\n}\nif(blendMode == 14) {\nreturn src + dst - 2.0 * src * dst;\n}\nif(blendMode == 15) {\nreturn 2.0 * src + dst - 1.0;\n}\nif(blendMode == 16) {\nreturn vec3((src.x > 0.5) ? max(dst.x, 2.0 * (src.x - 0.5)) : min(dst.x, 2.0 * src.x), (src.x > 0.5) ? max(dst.y, 2.0 * (src.y - 0.5)) : min(dst.y, 2.0 * src.y), (src.z > 0.5) ? max(dst.z, 2.0 * (src.z - 0.5)) : min(dst.z, 2.0 * src.z));\n}\nif(blendMode == 17) {\nreturn vec3((src.x <= 0.5) ? (1.0 - (1.0 - dst.x) / (2.0 * src.x)) : (dst.x / (2.0 * (1.0 - src.x))), (src.y <= 0.5) ? (1.0 - (1.0 - dst.y) / (2.0 * src.y)) : (dst.y / (2.0 * (1.0 - src.y))), (src.z <= 0.5) ? (1.0 - (1.0 - dst.z) / (2.0 * src.z)) : (dst.z / (2.0 * (1.0 - src.z))));\n}\n}out vec4 fragColor;float getBayer4(vec2 coord) {\nivec2 p = ivec2(mod(coord, 4.0));\nint x = p.x;\nint y = p.y;\nint v = 0;\nif (y == 0) {\nif (x == 0) v = 0; else if (x == 1) v = 8; else if (x == 2) v = 2; else v = 10;\n} else if (y == 1) {\nif (x == 0) v = 12; else if (x == 1) v = 4; else if (x == 2) v = 14; else v = 6;\n} else if (y == 2) {\nif (x == 0) v = 3; else if (x == 1) v = 11; else if (x == 2) v = 1; else v = 9;\n} else {\nif (x == 0) v = 15; else if (x == 1) v = 7; else if (x == 2) v = 13; else v = 5;\n}\nreturn (float(v) + 0.5) / 16.0;\n}uvec2 pcg2d(uvec2 v) {\nv = v * 1664525u + 1013904223u;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nv ^= v >> 16;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nreturn v;\n}float hash21(vec2 p) {\nuvec2 u = uvec2(ivec2(floor(p)) + 1000000);\nuvec2 q = pcg2d(u);\nreturn float(q.x ^ q.y) / 4294967295.0;\n}void hashCell(vec2 p, out float rExist, out vec2 rPos, out vec2 rMisc) {\nuvec2 u = uvec2(ivec2(floor(p)) + 1000000);\nuvec2 q1 = pcg2d(u);\nuvec2 q2 = pcg2d(q1.yx + 12345u);\nrExist = float(q1.x) / 4294967295.0;\nrPos = vec2(q1.y, q2.x) / 4294967295.0;\nrMisc = vec2(q2.y, q1.x ^ q2.y) / 4294967295.0;\n}void main() {\nvec2 uv = vTextureCoord;\nvec4 bg = texture(uTexture, uv);\nfloat aspect = uResolution.x / uResolution.y;\nfloat virtualHeight = mix(60.0, 160.0, 1.0 - 0.5700);\nvec2 pixelGrid = vec2(round(virtualHeight * aspect), round(virtualHeight));\nvec2 pixCoord = floor(uv * pixelGrid);\nvec2 pixelUv = (pixCoord + 0.5) / pixelGrid;\nfloat bayer = getBayer4(pixCoord) - 0.5;\nfloat dither = bayer * 0.7400 * 0.13;float t = clamp(uNightProgress, 0.0, 1.0);\nfloat skyT = clamp(pixelUv.y + dither * 0.65, 0.0, 1.0);\nfloat smoothSkyT = smoothstep(0.0, 1.0, skyT);\nvec3 daySky = mix(vec3(0.68, 0.88, 0.98), vec3(0.22, 0.58, 0.88), smoothSkyT);\nfloat dayHaze = smoothstep(0.45, 0.0, pixelUv.y);\ndaySky = mix(daySky, mix(vec3(0.68, 0.88, 0.98), vec3(0.92, 0.96, 1.0), 0.4), dayHaze * 0.5);\nvec3 sunsetZenith = vec3(0.18, 0.19, 0.42);\nvec3 sunsetMid = vec3(0.68, 0.34, 0.46);\nvec3 sunsetHorizon = vec3(0.98, 0.52, 0.26);\nvec3 sunsetSky = mix(sunsetHorizon, sunsetMid, smoothstep(0.0, 0.48, skyT));\nsunsetSky = mix(sunsetSky, sunsetZenith, smoothstep(0.42, 1.0, skyT));\nvec3 nightSky = mix(vec3(0.117647058823529, 0.133333333333333, 0.376470588235294), vec3(0.0431372549019608, 0.0509803921568627, 0.176470588235294), smoothSkyT);\nfloat nightHaze = smoothstep(0.35, 0.0, pixelUv.y);\nvec3 nightTint = mix(vec3(0.117647058823529, 0.133333333333333, 0.376470588235294), vec3(0.18, 0.16, 0.32), 0.6);\nnightSky = mix(nightSky, nightTint, nightHaze * 0.45);\nfloat toSunset = smoothstep(0.08, 0.48, t);\nfloat toNight = smoothstep(0.48, 0.92, t);\nvec3 skyColor = mix(daySky, sunsetSky, toSunset);\nskyColor = mix(skyColor, nightSky, toNight);\nskyColor = floor(skyColor * 32.0 + 0.5) / 32.0;\nfloat mouseActive = clamp(0.1700, 0.0, 1.0);\nvec2 mouseParallax = (uMousePos - 0.5) * vec2(aspect, 1.0) * mouseActive * -0.1000;\nfloat starFade = smoothstep(0.38, 0.88, t);\nfloat time = uTime * 0.04;\nvec3 starColor = vec3(0.0);\nfloat starMask = 0.0;if (starFade > 0.01) {\nvec2 bgStarPix = floor((pixelUv - mouseParallax * 0.10) * pixelGrid);\nfloat starRand = hash21(bgStarPix);\nfloat starThreshold = 1.0 - (0.0900 * 0.038);\nif (starRand > starThreshold) {\nfloat phase = hash21(bgStarPix + vec2(47.0, 83.0)) * 6.28318;\nfloat twinkle = sin(time * (0.4700 * 1.5 + 0.5) + phase);\nfloat steppedTwinkle = 0.0;\nif (twinkle > 0.6) {\nsteppedTwinkle = 1.0;\n} else if (twinkle > 0.0) {\nsteppedTwinkle = 0.65;\n} else if (twinkle > -0.5) {\nsteppedTwinkle = 0.35;\n}float tintRand = hash21(bgStarPix + vec2(113.0, 271.0));\nvec3 tint = vec3(1.0, 0.98, 0.92);\nif (tintRand > 0.7) {\ntint = vec3(0.82, 0.92, 1.0);\n} else if (tintRand < 0.3) {\ntint = vec3(1.0, 0.92, 0.78);\n}float starAltitude = smoothstep(0.08, 0.35, pixelUv.y - mouseParallax.y * 0.10);\nstarMask = steppedTwinkle * starAltitude * starFade;\nstarColor = tint * starMask;\n}\nvec2 sparkStarPix = floor((pixelUv - mouseParallax * 0.22) * pixelGrid);\nvec2 cell = floor(sparkStarPix / 18.0);\nfloat rExist;\nvec2 rPos, rMisc;\nhashCell(cell, rExist, rPos, rMisc);\nif (rExist < 0.0900 * 0.75) {\nvec2 centerPos = cell * 18.0 + floor(rPos * 14.0) + 2.0;\nvec2 dCenter = sparkStarPix - centerPos;\nfloat manhattan = abs(dCenter.x) + abs(dCenter.y);float sparkPhase = rMisc.x * 6.28318;\nfloat sparkTwinkle = sin(time * (0.4700 * 1.8 + 0.4) + sparkPhase);if (sparkTwinkle > -0.2) {\nfloat sparkBri = 0.0;\nif (manhattan == 0.0) {\nsparkBri = 1.0;\n} else if (manhattan == 1.0) {\nsparkBri = sparkTwinkle > 0.3 ? 0.8 : 0.45;\n} else if ((abs(dCenter.x) == 2.0 && dCenter.y == 0.0) || (abs(dCenter.y) == 2.0 && dCenter.x == 0.0)) {\nif (sparkTwinkle > 0.5) sparkBri = 0.5;\n}float alt = smoothstep(0.12, 0.4, pixelUv.y - mouseParallax.y * 0.22);\nif (sparkBri > 0.0 && alt > 0.0) {\nvec3 sparkTint = mix(vec3(1.0, 0.96, 0.85), vec3(0.85, 0.95, 1.0), rMisc.y);\nfloat fBri = sparkBri * alt * starFade;\nstarColor = max(starColor, sparkTint * fBri);\nstarMask = max(starMask, fBri);\n}\n}\n}\n}\nskyColor = mix(skyColor, max(skyColor, starColor), starMask);\nfloat sunSetProgress = smoothstep(0.0, 0.68, t);\nif (sunSetProgress < 0.99) {\nvec2 sunBase = vec2(vec2(0.22329860759237785, 0.28).x, 1.0 - vec2(0.22329860759237785, 0.28).y);\nvec2 sunCenter = vec2(\nsunBase.x + sin(sunSetProgress * 1.5708) * 0.03,\nmix(sunBase.y, -0.30, sunSetProgress)\n);\nvec2 sunPixelUv = pixelUv - mouseParallax * 0.42;\nvec2 sunDelta = (sunPixelUv - sunCenter) * vec2(aspect, 1.0);\nfloat sunR = mix(0.065, 0.20, 0.3500);\nfloat dSun = length(sunDelta) - sunR;\nfloat sunAlpha = 1.0 - smoothstep(0.75, 1.0, sunSetProgress);\nif (dSun > 0.0 && dSun < sunR * 1.15) {\nfloat glowDist = 1.0 - (dSun / (sunR * 1.15));\nfloat glowStepped = smoothstep(0.15, 0.95, glowDist + bayer * 0.28);\nvec3 dayGlow = vec3(1.0, 0.92, 0.62);\nvec3 sunsetGlow = vec3(1.0, 0.48, 0.20);\nvec3 sunHalo = mix(dayGlow, sunsetGlow, smoothstep(0.2, 0.85, sunSetProgress));\nskyColor = mix(skyColor, sunHalo, glowStepped * 0.35 * sunAlpha);\n}\nif (dSun <= 0.0 && sunAlpha > 0.01) {\nvec2 normDelta = sunDelta / max(0.001, sunR);\nfloat coreDist = length(normDelta);\nfloat rimT = clamp(coreDist + bayer * 0.20, 0.0, 1.0);vec3 sunCore = mix(vec3(1.0, 1.0, 0.92), vec3(1.0, 0.86, 0.46), smoothstep(0.25, 0.9, sunSetProgress));\nvec3 sunBody = mix(vec3(1.0, 0.90, 0.44), vec3(0.98, 0.56, 0.22), smoothstep(0.2, 0.85, sunSetProgress));\nvec3 sunEdge = mix(vec3(0.98, 0.72, 0.26), vec3(0.88, 0.34, 0.16), smoothstep(0.15, 0.85, sunSetProgress));vec3 sunCol = sunCore;\nif (rimT > 0.78) {\nsunCol = sunEdge;\n} else if (rimT > 0.48) {\nsunCol = sunBody;\n}\nfloat pixelStep = 1.0 / virtualHeight;\nif (-dSun < pixelStep * 0.75) {\nsunCol = mix(sunEdge, vec3(0.96, 0.50, 0.18), 0.3);\n}skyColor = mix(skyColor, sunCol, sunAlpha);\n}\n}\nfloat moonRiseProgress = smoothstep(0.38, 1.0, t);\nif (moonRiseProgress > 0.01) {\nvec2 moonCenter = vec2(vec2(0.788393598931817, 0.707202960568529).x, mix(-0.30, vec2(0.788393598931817, 0.707202960568529).y, moonRiseProgress));\nvec2 moonPixelUv = pixelUv - mouseParallax * 0.42;\nvec2 moonDelta = (moonPixelUv - moonCenter) * vec2(aspect, 1.0);\nfloat moonR = mix(0.07, 0.22, 0.3500);\nfloat moonAlpha = smoothstep(0.0, 0.25, moonRiseProgress);float dOuter = length(moonDelta) - moonR;\nvec2 cutoutOffset = vec2(moonR * 0.42, moonR * 0.22);\nfloat rCutout = moonR * 0.92;\nfloat dCutout = length(moonDelta - cutoutOffset) - rCutout;\nif (dOuter > 0.0 && dOuter < moonR * 0.85) {\nfloat glowDist = 1.0 - (dOuter / (moonR * 0.85));\nfloat glowDither = bayer * 0.25;\nfloat glowStepped = smoothstep(0.2, 0.9, glowDist + glowDither);\nvec3 haloColor = vec3(0.24, 0.26, 0.42);\nskyColor = mix(skyColor, haloColor, glowStepped * 0.4 * moonAlpha);\n}\nif (dOuter <= 0.0 && dCutout > 0.0) {\nfloat rimT = clamp((-dOuter) / (moonR * 0.35) + bayer * 0.18, 0.0, 1.0);\nfloat hollowT = clamp(dCutout / (moonR * 0.4) + bayer * 0.18, 0.0, 1.0);vec3 moonHighlight = vec3(1.0, 0.98, 0.90);\nvec3 moonBase = vec3(0.96, 0.91, 0.76);\nvec3 moonShadow = vec3(0.82, 0.77, 0.65);vec3 moonCol = mix(moonShadow, moonBase, smoothstep(0.1, 0.6, hollowT));\nmoonCol = mix(moonCol, moonHighlight, smoothstep(0.2, 0.8, rimT));float edgeDist = min(-dOuter, dCutout);\nfloat pixelStep = 1.0 / virtualHeight;\nif (edgeDist < pixelStep * 0.75) {\nmoonCol = mix(vec3(0.12, 0.14, 0.26), moonCol, 0.25);\n}skyColor = mix(skyColor, moonCol, moonAlpha);\n}\n}vec3 finalColor = skyColor;\nif (0 > 0) {\nfinalColor = blend(0, bg.rgb, skyColor);\n}fragColor = vec4(finalColor, 1.0);\n}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = vec4(aVertexPosition, 1.0);\nvTextureCoord = (vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"customPasses":[{"id":"custom-pass-1","label":"Pass 1","downSample":1,"includeBg":false,"needsPreviousFrame":null,"pingPong":false,"targetSize":null,"widthSegments":null,"heightSegments":null,"independentGeometry":null,"blend":false,"depthTest":false,"cullFace":null,"texturesOptions":null}],"trackMouse":0.17,"speed":0.26,"trackAxes":"xy","data":{"downSample":1,"depth":false,"uniforms":{"nightProgress":{"name":"uNightProgress","type":"1f","value":0}},"isBackground":false,"passes":[],"blend":false},"id":"1f800346-5c23-4a53-8b18-205dc8369561","publicId":"custom"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"custom","usesPingPong":true,"texture":{"src":"","name":"","thumb":"","sampler":"uCustomTexture1","label":"Custom Texture1"},"textures":[{"src":"","name":"","thumb":"","sampler":"uCustomTexture1","label":"Custom Texture1"},{"src":"https://assets.unicorn.studio/media/font_atlas.png","name":"","thumb":"","sampler":"uFontAtlas","label":"Font Atlas"}],"parentLayer":"e190878d-1046-47d6-b004-a93abed72759","animating":true,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"description":"","compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nuniform sampler2D uPingPongTexture;\nprecision highp float;\nprecision highp int;in vec2 vParticleCoord;\nflat in float vAge;\nflat in float vDepthScale;\nflat in vec2 vParticleRot;\nflat in float vParticleFace;\nflat in float vParticleGlyph;\nflat in float vStreakHalfLength;\nflat in float vParticleSpecular;\nflat in float vParticleDiffuse;\nflat in vec2 vMotionDir;\nflat in float vMotionBlur;uniform float uTime;\nuniform float uAiNightProgress;out vec4 fragColor;const vec3 LIGHT_DIRECTION = vec3(-0.461, 0.659, 0.593);\nconst float FONT_CELL_SIZE = 0.125;float saturate(float value) {\nreturn clamp(value, 0.0, 1.0);\n}float sdBox(vec2 p, vec2 halfSize) {\nvec2 d = abs(p) - halfSize;\nreturn length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n}float sdBird(vec2 p) {\nfloat time = uTime * 0.05;\nfloat flapPhase = time * mix(4.0, 18.0, saturate(1.0000)) + vParticleGlyph * 2.1;\nfloat wingWave = sin(flapPhase) + 0.18 * sin(flapPhase * 2.0);\nfloat wingLift = wingWave * 0.65 + 0.05;\nfloat ax = abs(p.x);\nfloat arch = ax * wingLift - ax * ax * 0.22 * sign(wingLift + 0.001);\nvec2 bp = vec2(ax, p.y - arch);\nfloat wingHalfThick = mix(0.18, 0.09, clamp(ax / 0.85, 0.0, 1.0));\nfloat wingDist = sdBox(bp - vec2(0.42, 0.0), vec2(0.44, wingHalfThick)) - 0.025;\nfloat bodyDist = length(p * vec2(1.45, 0.95)) - 0.20;\nreturn min(wingDist, bodyDist);\n}float getSdfDistance(vec2 p) {\nreturn sdBird(p);\n}void getSdfStyle(vec3 baseColor, float signedDist, float feather, out vec3 outColor, out float outAlpha, out float outGlow) {\nfloat aa = max(fwidth(signedDist), 0.002);\nfloat smoothShape = 1.0 - smoothstep(-feather, aa, signedDist);\nfloat pixelShape = step(signedDist, 0.0);\nfloat shape = (3 == 3 && 0.1500 > 0.001) ? pixelShape : smoothShape;\nfloat shapeGlow = exp2(-max(signedDist, 0.0) * 8.0);\nvec3 litColor = mix(baseColor, vec3(1.0), 0.08);\noutColor = mix(vec3(0, 0, 0), litColor, saturate(0.0000));\noutAlpha = shape;\noutGlow = shapeGlow * 0.35;\n}void getParticleStyle(vec2 particleCoord, vec3 baseColor, float feather, out vec3 outColor, out float outAlpha, out float outGlow) {float radial = length(particleCoord);\nfloat aa = max(fwidth(radial) * 1.25, 0.002);\nfloat core = 1.0 - smoothstep(1.0 - max(aa, feather), 1.0 + aa, radial);\nfloat signedDist = 1.0;\nvec2 local = mat2(vParticleRot.x, -vParticleRot.y, vParticleRot.y, vParticleRot.x) * particleCoord;\nsignedDist = getSdfDistance(local);getSdfStyle(baseColor, signedDist, feather, outColor, outAlpha, outGlow);\n}void main() {\nfloat ageFade = smoothstep(0.0, 0.07, vAge) * (1.0 - smoothstep(0.72, 1.0, vAge));\nif (ageFade <= 0.0001) {\nfragColor = vec4(0.0);\nreturn;\n}float radial = length(vParticleCoord);\nfloat haloScale = mix(1.35, 3.8, saturate(0.0000));\nfloat halo = 1.0 - smoothstep(1.0, haloScale, radial);\nhalo *= halo;vec2 normalCoord = vParticleCoord;\nvec3 normal = vec3(normalCoord, sqrt(max(1.0 - dot(normalCoord, normalCoord), 0.0)));\nfloat diffuse = 0.3 + 0.7 * max(dot(normal, LIGHT_DIRECTION), 0.0);\nfloat specular = max(dot(reflect(LIGHT_DIRECTION * -1.0, normal), vec3(0.0, 0.0, 1.0)), 0.0);\nspecular *= specular;\nspecular *= specular;\nspecular *= specular;\nfloat rim = 1.0 - normal.z;\nrim *= rim;vec3 environment = mix(vec3(0, 0, 0) * 0.3, vec3(0.72, 0.88, 1.0), saturate(normal.y * 0.5 + 0.5));\nvec3 particleColor = mix(vec3(0, 0, 0) * diffuse, environment, 0.18);\nparticleColor += vec3(1.0, 0.94, 0.84) * specular * 0.9 + vec3(0, 0, 0) * rim * 0.28;\nfloat signedDist = 1.0;float blurWeight = smoothstep(0.0, 0.65, vMotionBlur);\nfloat trailPosition = smoothstep(-0.9, 0.45, dot(vParticleCoord, vMotionDir));\nfloat shapeFeather = mix(0.0, mix(0.16, 0.04, trailPosition), blurWeight);\nvec3 styleColor;\nfloat styleAlpha;\nfloat styleGlow;\ngetParticleStyle(vParticleCoord, particleColor, shapeFeather, styleColor, styleAlpha, styleGlow);\nfloat trailFeather = mix(\n1.0,\ntrailPosition,\nblurWeight\n);\nfloat shapeAlpha = styleAlpha * trailFeather;float coreAlpha = saturate(shapeAlpha * ageFade * 1.0000);\nvec3 glowLight =\nvec3(0, 0, 0) * halo * ageFade * 1.0000 * 0.0000 * styleGlow * vDepthScale * trailFeather * 0.48;\nvec3 mappedGlow = glowLight / (vec3(1.0) + glowLight * 0.35);\nfloat glowAlpha = saturate(max(mappedGlow.r, max(mappedGlow.g, mappedGlow.b)) * 0.28);\nfloat alpha = saturate(coreAlpha + glowAlpha * (1.0 - coreAlpha));\nvec4 dayColor = vec4(styleColor * coreAlpha + mappedGlow, alpha);float dayFade = 1.0 - smoothstep(0.25, 0.75, saturate(uAiNightProgress));\nfragColor = dayColor * dayFade;\n}","#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nprecision highp int;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform vec2 uResolution;uniform sampler2D uMaskTexture;\nuniform int uIsMask;\nuniform vec2 uMousePos;\nuniform float uParentTrackMouse;out vec4 fragColor;void main() {\nvec2 uv = vTextureCoord;\nif (0.1500 > 0.001) {\nfloat pxSize = floor(mix(1.0, 12.0, clamp(0.1500, 0.0, 1.0)) + 0.5);\nvec2 samplePx = floor(floor(gl_FragCoord.xy / pxSize) * pxSize + pxSize * 0.5) + 0.5;\nuv = samplePx / max(uResolution, vec2(1.0));\n}\nvec4 color = texture(uTexture, uv);if(uIsMask == 1) {\nvec2 maskPos = mix(vec2(0), (uMousePos - 0.5), uParentTrackMouse);\nvec4 maskColor = texture(uMaskTexture, vTextureCoord - maskPos);\ncolor = color * (maskColor.a * maskColor.a);\n}fragColor = color;}","#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nprecision highp int;in vec2 vTextureCoord;uniform sampler2D uPingPongTexture;\nuniform vec2 uPreviousMousePos;\nuniform float uTime;uniform vec2 uMousePos;\nuniform vec2 uResolution;out vec4 fragColor;const int MAX_PARTICLES = 8192;\nconst int STATE_WIDTH = 32;\nconst int STATE_ROWS = 256;\nconst float TAU = 6.28318530718;\nconst float DEFAULT_PARTICLE_COUNT = 128.0;const float CLOCK_RANGE = 256.0;float saturate(float value) {\nreturn clamp(value, 0.0, 1.0);\n}float hash11(float value) {\nvalue = fract(value * 0.1031);\nvalue *= value + 33.33;\nvalue *= value + value;\nreturn fract(value);\n}vec2 directionFromSeed(float seed) {\nfloat angle = seed * TAU;\nreturn vec2(cos(angle), sin(angle));\n}float spreadAmount() {\nreturn saturate(1.0000) * 0.6;\n}ivec2 positionCoord(int id) {\nreturn ivec2(id % STATE_WIDTH, id / STATE_WIDTH);\n}ivec2 velocityCoord(int id) {\nreturn ivec2(id % STATE_WIDTH, id / STATE_WIDTH + STATE_ROWS);\n}ivec2 lifecycleCoord(int id) {\nreturn ivec2(id % STATE_WIDTH, id / STATE_WIDTH + STATE_ROWS * 2);\n}vec2 spawnPosition(int id, vec2 anchor, vec2 previousAnchor, vec2 aspectVec) {\nfloat fid = float(id);\nfloat seed = hash11(fid + 3.7);\nfloat seed2 = hash11(fid + 17.3);\nvec2 direction = directionFromSeed(seed) / aspectVec;\nfloat radius = mix(0.02, 0.28, spreadAmount()) * mix(0.25, 1.0, seed2);\nvec2 spreadOffset = vec2((seed - 0.5) * 0.55, (seed2 - 0.5) * 0.18);\nreturn mix(previousAnchor, anchor, seed2) + direction * radius + spreadOffset;\n}vec2 spawnVelocity(int id, vec2 pointerVelocity, vec2 aspectVec) {\nfloat fid = float(id);\nfloat seed = hash11(fid + 31.1);\nfloat seed2 = hash11(fid + 53.9);\nvec2 direction = directionFromSeed(seed);\nvec2 radial = direction / aspectVec;\nvec2 tangent = vec2(direction.y * -1.0, direction.x) / aspectVec;\nfloat speed = mix(0.025, 0.48, spreadAmount()) * mix(0.55, 1.25, seed2);if (2 == 0) {\nreturn radial * speed * 0.35 + pointerVelocity * mix(0.03, 0.12, seed2);\n}\nif (2 == 1) {\nreturn radial * speed * 1.35 + pointerVelocity * mix(0.12, 0.32, seed2);\n}\nif (2 == 2) {\nreturn tangent * speed * 0.45 + radial * speed * 0.08 + pointerVelocity * 0.1;\n}\nreturn radial * speed * 0.85 + pointerVelocity * mix(0.08, 0.2, seed2);\n}bool invalidState(vec4 positionState, vec4 velocityState, vec4 lifecycleState) {\nreturn any(isnan(positionState))\n|| any(isinf(positionState))\n|| any(isnan(velocityState))\n|| any(isinf(velocityState))\n|| any(isnan(lifecycleState))\n|| any(isinf(lifecycleState));\n}void main() {\nivec2 statePixel = ivec2(gl_FragCoord.xy);\nif (statePixel.x >= STATE_WIDTH || statePixel.y >= STATE_ROWS * 3) {\nfragColor = vec4(0.0);\nreturn;\n}int record = statePixel.y / STATE_ROWS;\nint id = (statePixel.y - record * STATE_ROWS) * STATE_WIDTH + statePixel.x;\nif (id >= MAX_PARTICLES) {\nfragColor = vec4(0.0);\nreturn;\n}vec4 positionState = texelFetch(uPingPongTexture, positionCoord(id), 0);\nvec4 velocityState = texelFetch(uPingPongTexture, velocityCoord(id), 0);\nvec4 lifecycleState = texelFetch(uPingPongTexture, lifecycleCoord(id), 0);float currentClock = fract(uTime / CLOCK_RANGE);\nbool uninitialized = dot(lifecycleState.xy, lifecycleState.xy) < 0.000001\n|| invalidState(positionState, velocityState, lifecycleState);\nfloat age = uninitialized ? 1.0 : saturate(lifecycleState.r);\nfloat previousClock = uninitialized ? currentClock : lifecycleState.g;\nfloat elapsedEngineTime = fract(currentClock - previousClock + 1.0) * CLOCK_RANGE;\nfloat dt = min(elapsedEngineTime / 60.0, 0.05);vec2 aspectVec = vec2(max(uResolution.x / max(uResolution.y, 1.0), 0.0001), 1.0);\nfloat trackMouse = saturate(0.6000);\nvec2 emitterAnchor = vec2(vec2(0.65, 0.5).x, -0.18);\nvec2 trackedAnchor = mix(vec2(0.5), uMousePos, trackMouse);\nvec2 previousTrackedAnchor = mix(vec2(0.5), uPreviousMousePos, trackMouse);\nvec2 emitterVelocity = vec2(0.0);\nif (dt > 0.00001) {\nemitterVelocity = (trackedAnchor - previousTrackedAnchor) / dt;\nfloat emitterSpeed = length(emitterVelocity * aspectVec);\nif (emitterSpeed > 2.0) {\nemitterVelocity *= 2.0 / emitterSpeed;\n}\n}float seed = hash11(float(id) + 71.7);\nfloat seed2 = hash11(float(id) + 97.1);\nfloat lifetime = mix(0.45, 7.0, saturate(1.0000)) * mix(0.78, 1.22, seed2);\nbool isMoving =\nlength((trackedAnchor - previousTrackedAnchor) * aspectVec) > 0.00035 && 0.6000 > 0.001;\nbool canEmit = (0 == 0 || isMoving) && 0.0300 > 0.001;\nint activeCount = clamp(35, 1, MAX_PARTICLES);\nfloat spawnRate = mix(1.0, 100.0, saturate(0.0300)) *\nfloat(activeCount) / DEFAULT_PARTICLE_COUNT;\nfloat spawnPeriod = 60.0 / spawnRate;\nfloat currentEngineTime = currentClock * CLOCK_RANGE;\nfloat previousEngineTime = previousClock * CLOCK_RANGE;\nif (currentClock < previousClock) currentEngineTime += CLOCK_RANGE;\nint previousEmissionTick = int(floor(previousEngineTime / spawnPeriod));\nint emissionTick = int(floor(currentEngineTime / spawnPeriod));\nint emittedSlots = min(max(emissionTick - previousEmissionTick, 0), activeCount);\nint firstSpawnSlot = (previousEmissionTick + 1) % activeCount;\nint spawnDistance = (id - firstSpawnSlot + activeCount) % activeCount;\nbool spawnDue = canEmit && spawnDistance < emittedSlots;vec2 pos = uninitialized ? vec2(0.0) : positionState.xy;\nvec2 vel = uninitialized ? vec2(0.0) : velocityState.xy * 2.0 - 1.0;if (id >= activeCount) {\npos = vec2(0.0);\nvel = vec2(0.0);\nage = 1.0;\n} else {\nif (uninitialized && 0 == 0 && 0.0300 > 0.001) {\nage = mix(0.02, 0.45, seed);\npos = spawnPosition(id, emitterAnchor, emitterAnchor, aspectVec) - vec2(0.0, seed * 0.35);\nvel = spawnVelocity(id, vec2(0.0), aspectVec);\n}if (spawnDue) {\nage = 0.0;\npos = spawnPosition(id, emitterAnchor, emitterAnchor, aspectVec);\nvel = spawnVelocity(id, vec2(0.0), aspectVec);\n} else if (age < 1.0) {\nage = min(age + dt / lifetime, 1.0);if (age < 1.0) {\nbool offCanvas = pos.x < 0.0 || pos.x > 1.0 || pos.y < 0.0 || pos.y > 1.0;\nvec2 flockOffset = directionFromSeed(seed) / aspectVec * (0.04 + 0.14 * seed2);\nvec2 targetPoint = (offCanvas ? vec2(0.5, 0.35) : trackedAnchor) + flockOffset;\nvec2 anchorDelta = (targetPoint - pos) * aspectVec;\nfloat anchorDistance = length(anchorDelta);\nfloat attractionStrength = (2 == 1 ? 3.0 : 9.0);\nvel += (anchorDelta / aspectVec) * attractionStrength * saturate(0.5000) * dt;if (2 == 2 && anchorDistance > 0.0001) {\nvec2 tangent = vec2(anchorDelta.y * -1.0, anchorDelta.x) / anchorDistance;\nvel += (tangent / aspectVec) * mix(0.45, 2.4, saturate(0.5000)) *\nmix(0.05, 1.0, spreadAmount()) * dt;\n}float time = uTime * 0.025;\nvec2 turbulence = vec2(\nsin(time + seed * TAU + pos.y * 11.0),\ncos(time * 1.17 + seed2 * TAU + pos.x * 9.0)\n);\nvel += turbulence * saturate(1.0000) * 0.46 * dt;\nif (0 == 1) {\nvec2 gravityTarget = vec2(vec2(0.5, 0.5).x, 1.0 - vec2(0.5, 0.5).y);\nvec2 gravityDelta = (gravityTarget - pos) * aspectVec;\nfloat gravityDistance = length(gravityDelta);\nif (gravityDistance > 0.0001) {\nvel += (gravityDelta / gravityDistance / aspectVec) * saturate(0.1400) * 1.25 * dt;\n}\n} else {\nvel.y -= saturate(0.1400) * 1.25 * dt;\n}float drag = (2 == 1 ? 0.35 : 0.75);\nvel /= 1.0 + drag * dt;\nvel = clamp(vel, vec2(-1.0), vec2(1.0));\npos += vel * dt;if (0 == 1) {\nfloat radiusY = mix(0.0025, 0.018, saturate(0.1000)) * 1.45;\nfloat radiusX = radiusY / aspectVec.x;\nfloat restitution = mix(0.05, 0.95, saturate(0.5500));if (pos.x < radiusX) {\npos.x = radiusX;\nif (vel.x < 0.0) vel.x *= restitution * -1.0;\n}\nif (pos.x > 1.0 - radiusX) {\npos.x = 1.0 - radiusX;\nif (vel.x > 0.0) vel.x *= restitution * -1.0;\n}\nif (pos.y < radiusY) {\npos.y = radiusY;\nif (vel.y < 0.0) vel.y *= restitution * -1.0;\n}\nif (pos.y > 1.0 - radiusY) {\npos.y = 1.0 - radiusY;\nif (vel.y > 0.0) vel.y *= restitution * -1.0;\n}\n}\n} else {\npos = vec2(0.0);\nvel = vec2(0.0);\n}\n}\n}\nif (record == 0) {\nfragColor = vec4(pos, 0.0, 1.0);\n} else if (record == 1) {\nfragColor = vec4(vel * 0.5 + 0.5, 0.0, 1.0);\n} else {\nfragColor = vec4(age, currentClock, 0.0, 1.0);\n}\n}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nprecision highp int;in vec3 aVertexPosition;uniform sampler2D uPingPongTexture;\nuniform vec2 uResolution;\nuniform float uTime;out vec2 vParticleCoord;\nflat out float vAge;\nflat out float vDepthScale;\nflat out vec2 vParticleRot;\nflat out float vParticleFace;\nflat out float vParticleGlyph;\nflat out float vStreakHalfLength;\nflat out float vParticleSpecular;\nflat out float vParticleDiffuse;\nflat out vec2 vMotionDir;\nflat out float vMotionBlur;const int MAX_PARTICLES = 8192;\nconst int STATE_WIDTH = 32;\nconst int STATE_ROWS = 256;\nconst float TAU = 6.28318530718;\nconst float ASCII_SIZE_SCALE = 1.5;\nconst float SQUARE_SIZE_SCALE = 1.7;\nconst float CUBE_SIZE_SCALE = 1.7;\nconst float STREAK_WIDTH_SCALE = 0.65;\nconst vec3 LIGHT_DIRECTION = vec3(-0.461, 0.659, 0.593);float hash11(float value) {\nvalue = fract(value * 0.1031);\nvalue *= value + 33.33;\nvalue *= value + value;\nreturn fract(value);\n}vec4 quaternionFromEuler(vec3 angles) {\nvec3 c = cos(angles * 0.5);\nvec3 s = sin(angles * 0.5);\nreturn vec4(\ns.x * c.y * c.z - c.x * s.y * s.z,\nc.x * s.y * c.z + s.x * c.y * s.z,\nc.x * c.y * s.z - s.x * s.y * c.z,\nc.x * c.y * c.z + s.x * s.y * s.z\n);\n}ivec2 positionCoord(int id) {\nreturn ivec2(id % STATE_WIDTH, id / STATE_WIDTH);\n}ivec2 velocityCoord(int id) {\nreturn ivec2(id % STATE_WIDTH, id / STATE_WIDTH + STATE_ROWS);\n}ivec2 lifecycleCoord(int id) {\nreturn ivec2(id % STATE_WIDTH, id / STATE_WIDTH + STATE_ROWS * 2);\n}vec2 quadCorner(int corner) {\nif (corner == 0) return vec2(-1.0, -1.0);\nif (corner == 1) return vec2(1.0, -1.0);\nif (corner == 2) return vec2(-1.0, 1.0);\nif (corner == 3) return vec2(-1.0, 1.0);\nif (corner == 4) return vec2(1.0, -1.0);\nreturn vec2(1.0, 1.0);\n}float getExtentScale(float haloScale) {\nreturn haloScale;\n}void main() {\nint particleId = gl_VertexID / 6;\nvec4 positionState = texelFetch(uPingPongTexture, positionCoord(particleId), 0);\nvec4 lifecycleState = texelFetch(uPingPongTexture, lifecycleCoord(particleId), 0);\nbool activeParticle = particleId < clamp(35, 1, MAX_PARTICLES)\n&& dot(positionState.xy, positionState.xy) > 0.000001\n&& lifecycleState.r < 1.0;if (!activeParticle) {\nvParticleCoord = vec2(0.0);\nvAge = 1.0;\nvDepthScale = 1.0;\nvParticleRot = vec2(1.0, 0.0);\nvParticleFace = 1.0;\nvParticleGlyph = 1.0;\nvStreakHalfLength = 0.0;\nvParticleSpecular = 0.0;\nvParticleDiffuse = 1.0;\nvMotionDir = vec2(1.0, 0.0);\nvMotionBlur = 0.0;\ngl_Position = vec4(2.0, 2.0, aVertexPosition.z, 1.0);\nreturn;\n}float seed = hash11(float(particleId) + 11.3);\nfloat depthSeed = hash11(float(particleId) + 43.7);\nfloat angle = seed * TAU;\nif (3 == 6) {\nangle += uTime * 0.025 * mix(0.6, 1.4, fract(seed * 7.13));\n} else {\nangle += lifecycleState.r * mix(0.6, 2.4, fract(seed * 7.13)) * TAU;\n}\nfloat flipPhase = lifecycleState.r * mix(1.2, 3.6, fract(seed * 11.7)) * TAU + seed * 4.0;\nfloat flip = cos(flipPhase);\nfloat depthScale = mix(0.68, 1.34, depthSeed);\nfloat radius = mix(0.0025, 0.018, clamp(0.1000, 0.0, 4.0)) * depthScale;\nif (3 == 2) radius *= SQUARE_SIZE_SCALE;\nif (3 == 3) radius *= 3.6;\nif (3 == 9) radius *= CUBE_SIZE_SCALE;\nif (3 == 6) radius *= ASCII_SIZE_SCALE;\nif (3 == 7) radius *= STREAK_WIDTH_SCALE;\nfloat haloScale = mix(1.35, 3.8, clamp(0.0000, 0.0, 1.0));\nfloat extentScale = getExtentScale(haloScale);\nfloat aspect = max(uResolution.x / max(uResolution.y, 1.0), 0.0001);\nvec2 aspectVec = vec2(aspect, 1.0);\nvec2 particleRot = vec2(cos(angle), sin(angle));\nvec4 particleRotation = vec4(0.0, 0.0, 0.0, 1.0);\nif (3 == 9) {\nparticleRotation = quaternionFromEuler(vec3(\nflipPhase * 0.78,\nangle * 0.73 + depthSeed * TAU,\nangle\n));\n}\nfloat particleSpecular = 0.0;\nfloat particleDiffuse = 1.0;\nif (3 == 2) {\nfloat squareDepth = abs(flip);\nfloat squareTilt = sin(flipPhase) * (flip < 0.0 ? -1.0 : 1.0);\nvec3 squareNormal = vec3(particleRot * squareTilt, squareDepth);\nfloat lightFacing = max(dot(squareNormal, LIGHT_DIRECTION), 0.0);\nparticleDiffuse = lightFacing;\nparticleSpecular = smoothstep(0.72, 0.98, lightFacing);\nparticleSpecular *= particleSpecular;\n}\nvec2 velocity = texelFetch(uPingPongTexture, velocityCoord(particleId), 0).xy * 2.0 - 1.0;\nvec2 heading = velocity * aspectVec;\nfloat headingLength = length(heading);\nvec2 motionDir = headingLength > 0.0001 ? heading / headingLength : vec2(1.0, 0.0);\nfloat motionBlur = 3 == 6 || 3 == 7\n? 0.0\n: smoothstep(0.015, 0.35, headingLength) * clamp(0.0000, 0.0, 1.0) * 2.5;\nif (3 == 3) {\nfloat bank = clamp(motionDir.x * 0.42, -0.42, 0.42) * smoothstep(0.01, 0.08, headingLength);\nparticleRot = vec2(cos(bank), sin(bank));\n} else if ((3 == 4 || 3 == 5) || 3 == 7) {\nif (headingLength > 0.0001) particleRot = motionDir;\n}\nvec2 corner = quadCorner(gl_VertexID - particleId * 6);\nvec2 particlePosition = positionState.xy;\nvec2 uvOffset;vParticleCoord = corner * extentScale;\nvStreakHalfLength = 0.0;\nif (3 == 7) {\nfloat speedStretch = clamp(headingLength * 2.0, 0.0, 1.0);\nfloat ageStretch = smoothstep(0.0, 0.1, lifecycleState.r);\nfloat bodyLength =\nradius / STREAK_WIDTH_SCALE *\nmix(0.25, 22.0, clamp(0.8200, 0.0, 1.0)) *\nspeedStretch *\nageStretch;\nfloat halfBodyLength = bodyLength * 0.5;\nfloat halfWidth = radius * extentScale;\nfloat halfLength = halfBodyLength + halfWidth;\nvec2 particleNormal = vec2(-particleRot.y, particleRot.x);\nparticlePosition -= particleRot / aspectVec * halfBodyLength;\nuvOffset = (\nparticleRot * corner.x * halfLength\n+ particleNormal * corner.y * halfWidth\n) / aspectVec;\nvParticleCoord = vec2(corner.x * halfLength, corner.y * halfWidth) / radius;\nvStreakHalfLength = halfBodyLength / radius;\n} else if (motionBlur > 0.001) {\nfloat halfWidth = radius * extentScale;\nfloat blurLength = radius * motionBlur;\nfloat halfLength = halfWidth + blurLength * 0.5;\nvec2 motionNormal = vec2(-motionDir.y, motionDir.x);\nvec2 visualOffset =\nmotionDir * (corner.x * halfLength - blurLength * 0.5)\n+ motionNormal * corner.y * halfWidth;\nuvOffset = visualOffset / aspectVec;\nvParticleCoord =\nmotionDir * corner.x * extentScale\n+ motionNormal * corner.y * extentScale;\n} else {\nuvOffset = vec2(corner.x / aspect, corner.y) * radius * extentScale;\n}\nvAge = lifecycleState.r;\nvDepthScale = depthScale;\nvParticleRot = particleRot;\nvParticleFace = max(abs(flip), 0.18);\nvParticleGlyph =\nfloor(hash11(float(particleId) + 101.3) * 63.0) + 1.0;\nvParticleSpecular = particleSpecular;\nvParticleDiffuse = particleDiffuse;\nvMotionDir = motionDir;\nvMotionBlur = motionBlur;\ngl_Position = vec4((particlePosition + uvOffset) * 2.0 - 1.0, aVertexPosition.z, 1.0);\n}","#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}","#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"customPasses":[{"id":"custom-pass-1","label":"Pass 1","downSample":1,"includeBg":false,"needsPreviousFrame":null,"pingPong":false,"targetSize":null,"widthSegments":8192,"heightSegments":1,"independentGeometry":true,"blend":true,"depthTest":false,"cullFace":null,"texturesOptions":null},{"id":"custom-pass-2","label":"Pass 2","downSample":1,"includeBg":false,"needsPreviousFrame":null,"pingPong":false,"targetSize":null,"widthSegments":1,"heightSegments":1,"independentGeometry":false,"blend":false,"depthTest":null,"cullFace":null,"texturesOptions":null},{"id":"custom-pass-3","label":"Pass 3","downSample":null,"includeBg":false,"needsPreviousFrame":null,"pingPong":true,"targetSize":{"height":768,"width":32},"widthSegments":1,"heightSegments":1,"independentGeometry":false,"blend":false,"depthTest":null,"cullFace":null,"texturesOptions":{"premultipliedAlpha":false,"floatingPoint":"half-float","premultiplyAlpha":false}}],"trackMouse":0.6,"speed":0.26,"trackAxes":"xy","data":{"downSample":1,"depth":false,"uniforms":{"aiNightProgress":{"name":"uAiNightProgress","type":"1f","value":0}},"isBackground":false,"pingPongTargetSize":{"height":768,"width":32},"pingPongTexturesOptions":{"floatingPoint":"half-float","premultiplyAlpha":false,"premultipliedAlpha":false},"passes":[{"id":"custom-pass-2","label":"Pass 2","prop":"pass","value":1,"downSample":1,"includeBg":false,"needsPreviousFrame":null,"pingPong":false,"targetSize":null,"widthSegments":1,"heightSegments":1,"independentGeometry":false,"blend":false,"texturesOptions":null},{"id":"custom-pass-3","label":"Pass 3","prop":"pass","value":2,"downSample":null,"includeBg":false,"needsPreviousFrame":null,"pingPong":true,"targetSize":{"height":768,"width":32},"widthSegments":1,"heightSegments":1,"independentGeometry":false,"blend":false,"texturesOptions":{"premultipliedAlpha":false,"floatingPoint":"half-float","premultiplyAlpha":false}}],"blend":true,"independentGeometry":true,"textures":[{"src":"","sampler":"uCustomTexture1"},{"src":"https://assets.unicorn.studio/media/font_atlas.png","sampler":"uFontAtlas"}],"texture":{"src":"","sampler":"uCustomTexture1"},"heightSegments":1,"widthSegments":8192},"id":"3c183a15-bb8a-4fd1-bb0a-21b6ab6a2868","publicId":"custom2"},{"breakpoints":[{"min":992,"name":"Desktop","props":{"visible":true},"max":null},{"max":991,"props":{"visible":false},"min":576,"name":"Tablet"}],"visible":true,"aspectRatio":1,"userDownsample":1,"states":{"appear":[],"scroll":[],"hover":[],"mousemove":[]},"effects":["e190878d-1046-47d6-b004-a93abed72759"],"anchorPoint":0,"mask":0,"maskInvert":0,"maskDepth":0,"maskDepthLayer":0,"layerType":"shape","width":1,"widthMode":0,"height":1,"heightMode":0,"left":0,"top":0,"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform vec2 uMousePos;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\nfloat angleX = uMousePos.y * 0.5 - 0.25;\nfloat angleY = (1.-uMousePos.x) * 0.5 - 0.25;mat4 rotateX = mat4(1.0, 0.0, 0.0, 0.0,\n0.0, cos(angleX), -sin(angleX), 0.0,\n0.0, sin(angleX), cos(angleX), 0.0,\n0.0, 0.0, 0.0, 1.0);\nmat4 rotateY = mat4(cos(angleY), 0.0, sin(angleY), 0.0,\n0.0, 1.0, 0.0, 0.0,\n-sin(angleY), 0.0, cos(angleY), 0.0,\n0.0, 0.0, 0.0, 1.0);mat4 rotationMatrix = rotateX * rotateY;\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvVertexPosition = (rotationMatrix * vec4(aVertexPosition, 1.0)).xyz;\nvTextureCoord = (vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec2 vTextureCoord;\nin vec3 vVertexPosition;uniform vec2 uArtboardResolution;uniform vec2 uMousePos;const float TAU = 6.28318530718;\nconst float PI = 3.14159265359;out vec4 fragColor;vec2 rotate2D(vec2 p, float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn vec2(p.x * c - p.y * s, p.x * s + p.y * c);\n}vec2 getAnchorOffsets() {\nreturn vec2(0.0, 0.0);\n}vec3 getFillColor(vec2 localPos, vec2 elementSize, float signedDist, float maxInset) {\nvec2 halfSize = elementSize * 0.5;\nvec2 p = localPos - halfSize;return vec3(1, 1, 1);\n}float sdBox(vec2 p, vec2 b) {\nvec2 d = abs(p) - b;\nreturn length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n}float sdShape(vec2 canvasPosPx, vec2 elementPosPx, vec2 elementSizePx, float rotationTurns) {\nvec2 p = vec2(0.0);\nvec2 halfSize = vec2(0.0);halfSize = uArtboardResolution * 0.5;\np = canvasPosPx - halfSize;\nreturn sdBox(p, halfSize);elementSizePx = abs(elementSizePx);vec2 centerPx = elementPosPx + elementSizePx * 0.5;\nvec2 rel = canvasPosPx - centerPx;\nvec2 local = rotate2D(rel, -rotationTurns * TAU) + elementSizePx * 0.5;\np = local - elementSizePx * 0.5;\nhalfSize = elementSizePx * 0.5;\nreturn sdBox(p, halfSize);\n}vec4 sampleShape(vec2 canvasUV) {\nvec2 canvasPosPx = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);float absWidth = 1.0000 * uArtboardResolution.x;\nfloat absHeight = 1.0000 * uArtboardResolution.y;\nvec2 elementSizePx = vec2(absWidth, absHeight);\nvec2 elementPosPx = vec2(0.0000, 0.0000) * uArtboardResolution - getAnchorOffsets() * elementSizePx;float dist = sdShape(canvasPosPx, elementPosPx, elementSizePx, 0.0000);\nfloat aa = max(length(vec2(dFdx(dist), dFdy(dist))), 0.75);\nfloat uvGrad = max(length(dFdx(canvasUV)), length(dFdy(canvasUV)));\nfloat seamFactor = smoothstep(0.01, 0.03, uvGrad);\naa = mix(aa, 0.75, seamFactor);float fillAlpha = 1.0 - smoothstep(mix(0.0, -150., 0.0000), mix(aa, 150., 0.0000), dist);\nfillAlpha = mix(fillAlpha, step(dist, 0.0), seamFactor);\nvec2 localPos;\nlocalPos = canvasPosPx;\nvec2 localSize;\nlocalSize = uArtboardResolution;vec2 centerPx;\ncenterPx = uArtboardResolution * 0.5;\nfloat centerDist = sdShape(centerPx, elementPosPx, elementSizePx, 0.0000);\nfloat maxInset = max(-centerDist, 0.00001);vec3 fillRgb = getFillColor(localPos, localSize, dist, maxInset);float finalFillAlpha = fillAlpha * 1.0000;\nvec4 fill = vec4(fillRgb * finalFillAlpha, finalFillAlpha);float strokeAlpha = 0.0;\nvec4 stroke = vec4(vec3(0, 0, 0) * strokeAlpha, strokeAlpha);\nvec4 col = stroke + fill * (1.0 - stroke.a);\nreturn col;\n}vec4 getSourceOutput(vec2 uv) {\nreturn sampleShape(uv);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 pos = (uMousePos - 0.5) * 0.0000;uv -= pos;fragColor = getSourceOutput(uv);\n}"],"data":{"uniforms":{"artboardResolution":{"name":"uArtboardResolution","type":"2f","value":{"type":"Vec2","_x":1920,"_y":440}},"aspectRatio":{"name":"uAspectRatio","type":"1f","value":1}},"elementOpacity":1,"compositeShader":{"fragmentShader":"#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nin vec2 vTextureCoord;\nin vec3 vVertexPosition;uniform sampler2D uBgTexture;\nuniform sampler2D uTexture;const float PI = 3.14159265359;out vec4 fragColor;vec4 getNormalOutput(vec4 color, vec4 background) {\nreturn mix(background, color + background * (1.0 - color.a), 1.0000);\n}vec4 getOutputByMode(vec4 color, vec4 background) {\nreturn getNormalOutput(color, background);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 pos = vec2(0);uv -= pos;vec4 background = vec4(0);background = texture(uBgTexture, vTextureCoord);\nvec4 color = texture(uTexture, uv);vec4 col = getOutputByMode(color, background);fragColor = col;\n}","vertexShader":"#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;\nuniform vec2 uMousePos;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\nfloat angleX = uMousePos.y * 0.5 - 0.25;\nfloat angleY = (1.-uMousePos.x) * 0.5 - 0.25;mat4 rotateX = mat4(1.0, 0.0, 0.0, 0.0,\n0.0, cos(angleX), -sin(angleX), 0.0,\n0.0, sin(angleX), cos(angleX), 0.0,\n0.0, 0.0, 0.0, 1.0);\nmat4 rotateY = mat4(cos(angleY), 0.0, sin(angleY), 0.0,\n0.0, 1.0, 0.0, 0.0,\n-sin(angleY), 0.0, cos(angleY), 0.0,\n0.0, 0.0, 0.0, 1.0);mat4 rotationMatrix = rotateX * rotateY;\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvVertexPosition = (rotationMatrix * vec4(aVertexPosition, 1.0)).xyz;\nvTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"},"compositeUniforms":{"resolution":{"name":"uResolution","type":"2f","value":{"type":"Vec2","_x":1080,"_y":1080}},"opacity":{"name":"uOpacity","type":"1f","value":1},"mousePos":{"name":"uMousePos","type":"2f","value":{"type":"Vec2","_x":0.5,"_y":0.5}}}},"id":"ec67a646-8f34-415f-9b89-57efa6c278ff","publicId":"shape"},{"layerType":"flattened","id":"flat_4","compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nin vec2 vTextureCoord;\nin vec3 vVertexPosition;\n\nuniform sampler2D uBgTexture;\nuniform vec2 uArtboardResolution;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nuniform vec2 uL101_MousePos;\nuniform float uL101_Time;\nuniform float uL101_NightProgress;\nuniform float uL101_ElemOpacity;\nuniform float uL0_ElemOpacity;\n\nconst float TAU = 6.28318530718;\nconst float PI = 3.14159265359;\n\nout vec4 fragColor;\n\nvec2 rotate2D_L100(vec2 p, float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn vec2(p.x * c - p.y * s, p.x * s + p.y * c);\n}\nvec2 getAnchorOffsets_L100() {\nreturn vec2(0.0, 0.0);\n}\nvec3 getFillColor_L100(vec2 localPos, vec2 elementSize, float signedDist, float maxInset) {\nvec2 halfSize = elementSize * 0.5;\nvec2 p = localPos - halfSize;\nreturn vec3(0, 0, 0);\n}\nfloat sdBox_L100(vec2 p, vec2 b) {\nvec2 d = abs(p) - b;\nreturn length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n}\nfloat sdShape_L100(vec2 canvasPosPx, vec2 elementPosPx, vec2 elementSizePx, float rotationTurns) {\nvec2 p = vec2(0.0);\nvec2 halfSize = vec2(0.0);\nhalfSize = uArtboardResolution * 0.5;\np = canvasPosPx - halfSize;\nreturn sdBox_L100(p, halfSize);\nelementSizePx = abs(elementSizePx);\nvec2 centerPx = elementPosPx + elementSizePx * 0.5;\nvec2 rel = canvasPosPx - centerPx;\nvec2 local = rotate2D_L100(rel, -rotationTurns * TAU) + elementSizePx * 0.5;\np = local - elementSizePx * 0.5;\nhalfSize = elementSizePx * 0.5;\nreturn sdBox_L100(p, halfSize);\n}\nvec4 sampleShape_L100(vec2 canvasUV) {\nvec2 canvasPosPx = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);\nfloat absWidth = 200.0000;\nfloat absHeight = 200.0000;\nvec2 elementSizePx = vec2(absWidth, absHeight);\nvec2 elementPosPx = vec2(0.4588, 0.4781) * uArtboardResolution - getAnchorOffsets_L100() * elementSizePx;\nfloat dist = sdShape_L100(canvasPosPx, elementPosPx, elementSizePx, 0.0000);\nfloat aa = max(length(vec2(dFdx(dist), dFdy(dist))), 0.75);\nfloat uvGrad = max(length(dFdx(canvasUV)), length(dFdy(canvasUV)));\nfloat seamFactor = smoothstep(0.01, 0.03, uvGrad);\naa = mix(aa, 0.75, seamFactor);\nfloat fillAlpha = 1.0 - smoothstep(mix(0.0, -150., 0.0000), mix(aa, 150., 0.0000), dist);\nfillAlpha = mix(fillAlpha, step(dist, 0.0), seamFactor);\nvec2 localPos;\nlocalPos = canvasPosPx;\nvec2 localSize;\nlocalSize = uArtboardResolution;\nvec2 centerPx;\ncenterPx = uArtboardResolution * 0.5;\nfloat centerDist = sdShape_L100(centerPx, elementPosPx, elementSizePx, 0.0000);\nfloat maxInset = max(-centerDist, 0.00001);\nvec3 fillRgb = getFillColor_L100(localPos, localSize, dist, maxInset);\nfloat finalFillAlpha = fillAlpha * 1.0000;\nvec4 fill = vec4(fillRgb * finalFillAlpha, finalFillAlpha);\nfloat strokeAlpha = 0.0;\nvec4 stroke = vec4(vec3(0, 0, 0) * strokeAlpha, strokeAlpha);\nvec4 col = stroke + fill * (1.0 - stroke.a);\nreturn col;\n}\nvec4 computeParentSrc_L0(vec2 uv) {\nvec2 pos = (uMousePos - 0.5) * 0.0000;\nuv -= pos;\nreturn sampleShape_L100(uv);\n}\nvec3 blend_L101 (int blendMode, vec3 src, vec3 dst) {\nif(blendMode == 0) {\nreturn src;\n}\nif(blendMode == 1) {\nreturn src + dst;\n}\nif(blendMode == 2) {\nreturn src - dst;\n}\nif(blendMode == 3) {\nreturn src * dst;\n}\nif(blendMode == 4) {\nreturn 1. - (1. - src) * (1. - dst);\n}\nif(blendMode == 5) {\nreturn vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)), (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)), (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n}\nif(blendMode == 6) {\nreturn min(src, dst);\n}\nif(blendMode == 7) {\nreturn max(src, dst);\n}\nif(blendMode == 8) {\nreturn vec3((src.x == 1.0) ? 1.0 : min(1.0, dst.x / (1.0 - src.x)), (src.y == 1.0) ? 1.0 : min(1.0, dst.y / (1.0 - src.y)), (src.z == 1.0) ? 1.0 : min(1.0, dst.z / (1.0 - src.z)));\n}\nif(blendMode == 9) {\nreturn vec3((src.x == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.x) / src.x)), (src.y == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.y) / src.y)), (src.z == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.z) / src.z)));\n}\nif(blendMode == 10) {\nreturn (src + dst) - 1.0;\n}\nif(blendMode == 11) {\nreturn vec3((src.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - src.x) * (1.0 - dst.x)), (src.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - src.y) * (1.0 - dst.y)), (src.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - src.z) * (1.0 - dst.z)));\n}\nif(blendMode == 12) {\nreturn vec3((src.x <= 0.5) ? (dst.x - (1.0 - 2.0 * src.x) * dst.x * (1.0 - dst.x)) : (((src.x > 0.5) && (dst.x <= 0.25)) ? (dst.x + (2.0 * src.x - 1.0) * (4.0 * dst.x * (4.0 * dst.x + 1.0) * (dst.x - 1.0) + 7.0 * dst.x)) : (dst.x + (2.0 * src.x - 1.0) * (sqrt(dst.x) - dst.x))), (src.y <= 0.5) ? (dst.y - (1.0 - 2.0 * src.y) * dst.y * (1.0 - dst.y)) : (((src.y > 0.5) && (dst.y <= 0.25)) ? (dst.y + (2.0 * src.y - 1.0) * (4.0 * dst.y * (4.0 * dst.y + 1.0) * (dst.y - 1.0) + 7.0 * dst.y)) : (dst.y + (2.0 * src.y - 1.0) * (sqrt(dst.y) - dst.y))), (src.z <= 0.5) ? (dst.z - (1.0 - 2.0 * src.z) * dst.z * (1.0 - dst.z)) : (((src.z > 0.5) && (dst.z <= 0.25)) ? (dst.z + (2.0 * src.z - 1.0) * (4.0 * dst.z * (4.0 * dst.z + 1.0) * (dst.z - 1.0) + 7.0 * dst.z)) : (dst.z + (2.0 * src.z - 1.0) * (sqrt(dst.z) - dst.z))));\n}\nif(blendMode == 13) {\nreturn abs(dst - src);\n}\nif(blendMode == 14) {\nreturn src + dst - 2.0 * src * dst;\n}\nif(blendMode == 15) {\nreturn 2.0 * src + dst - 1.0;\n}\nif(blendMode == 16) {\nreturn vec3((src.x > 0.5) ? max(dst.x, 2.0 * (src.x - 0.5)) : min(dst.x, 2.0 * src.x), (src.x > 0.5) ? max(dst.y, 2.0 * (src.y - 0.5)) : min(dst.y, 2.0 * src.y), (src.z > 0.5) ? max(dst.z, 2.0 * (src.z - 0.5)) : min(dst.z, 2.0 * src.z));\n}\nif(blendMode == 17) {\nreturn vec3((src.x <= 0.5) ? (1.0 - (1.0 - dst.x) / (2.0 * src.x)) : (dst.x / (2.0 * (1.0 - src.x))), (src.y <= 0.5) ? (1.0 - (1.0 - dst.y) / (2.0 * src.y)) : (dst.y / (2.0 * (1.0 - src.y))), (src.z <= 0.5) ? (1.0 - (1.0 - dst.z) / (2.0 * src.z)) : (dst.z / (2.0 * (1.0 - src.z))));\n}\n}\nfloat getBayer4_L101(vec2 coord) {\nivec2 p = ivec2(mod(coord, 4.0));\nint x = p.x;\nint y = p.y;\nint v = 0;\nif (y == 0) {\nif (x == 0) v = 0;\nelse if (x == 1) v = 8;\nelse if (x == 2) v = 2;\nelse v = 10;\n}\nelse if (y == 1) {\nif (x == 0) v = 12;\nelse if (x == 1) v = 4;\nelse if (x == 2) v = 14;\nelse v = 6;\n}\nelse if (y == 2) {\nif (x == 0) v = 3;\nelse if (x == 1) v = 11;\nelse if (x == 2) v = 1;\nelse v = 9;\n}\nelse {\nif (x == 0) v = 15;\nelse if (x == 1) v = 7;\nelse if (x == 2) v = 13;\nelse v = 5;\n}\nreturn (float(v) + 0.5) / 16.0;\n}\nfloat hash21_L101(vec2 p) {\np = fract(p * vec2(123.34, 456.21));\np += dot(p, p + 45.32);\nreturn fract(p.x * p.y);\n}\nvec2 hash22_L101(vec2 p) {\nvec3 p3 = fract(vec3(p.xyx) * vec3(443.897, 441.423, 437.195));\np3 += dot(p3, p3.yzx + 19.19);\nreturn fract((p3.xx + p3.yz) * p3.zy);\n}\nfloat vnoise_L101(vec2 p) {\nvec2 i = floor(p);\nvec2 f = p - i;\nvec2 u = f * f * (3.0 - 2.0 * f);\nfloat a = hash21_L101(i);\nfloat b = hash21_L101(i + vec2(1.0, 0.0));\nfloat c = hash21_L101(i + vec2(0.0, 1.0));\nfloat d = hash21_L101(i + vec2(1.0, 1.0));\nreturn mix(mix(a, b, u.x), mix(c, d, u.x), u.y);\n}\nfloat fbm_L101(vec2 p) {\nfloat v = 0.0;\nfloat a = 0.5;\nmat2 rot = mat2(0.8, 0.6, -0.6, 0.8);\nfor (int i = 0;\ni < 4;\ni++) {\nv += a * vnoise_L101(p);\np = rot * p * 2.05 + vec2(1.7, 9.2);\na *= 0.5;\n}\nreturn v;\n}\nfloat smax_L101(float a, float b, float k) {\nfloat h = clamp(0.5 + 0.5 * (a - b) / k, 0.0, 1.0);\nreturn mix(b, a, h) + k * h * (1.0 - h);\n}\nvoid evalCumulus_L101(vec2 coord, float sceneY, float baseY, float layerScale, out float density, out vec2 normal, out float depth) {\nvec2 p = coord * layerScale;\nfloat stepBase = baseY + (floor(fbm_L101(vec2(p.x * 0.6, 0.0)) * 6.0) / 6.0) * 0.012;\nfloat relY = sceneY - stepBase;\nif (relY < 0.0) {\ndensity = 0.0;\nnormal = vec2(0.0, 1.0);\ndepth = 0.0;\nreturn;\n}\nfloat xPos = p.x;\nfloat cellId = floor(xPos * 0.7);\nfloat maxField = 0.0;\nvec2 weightedNorm = vec2(0.0);\nfloat normWeightSum = 0.001;\nfor (int i = -2;\ni <= 2;\ni++) {\nfloat id = cellId + float(i);\nfloat clusterFbm = fbm_L101(vec2(id * 0.35, 6.1));\nfloat cluster = smoothstep(0.38, 0.62, clusterFbm + (1.0000 - 0.5) * 0.6);\nif (cluster <= 0.03) continue;\nfor (int k = 0;\nk < 6;\nk++) {\nvec2 h = hash22_L101(vec2(id * 5.31 + float(k) * 7.89, float(k) * 13.17));\nfloat cx, cy, rBase;\nif (k == 0) {\ncx = (id + 0.42) / 0.7 + (h.x - 0.5) * 0.10;\ncy = 0.16 + 0.08 * h.y;\nrBase = 0.34;\n}\nelse if (k == 1) {\ncx = (id + 0.62) / 0.7 + (h.x - 0.5) * 0.10;\ncy = 0.22 + 0.06 * h.y;\nrBase = 0.28;\n}\nelse if (k == 2) {\ncx = (id + 0.24) / 0.7 + (h.x - 0.5) * 0.08;\ncy = 0.08 + 0.05 * h.y;\nrBase = 0.24;\n}\nelse if (k == 3) {\ncx = (id + 0.78) / 0.7 + (h.x - 0.5) * 0.08;\ncy = 0.09 + 0.05 * h.y;\nrBase = 0.22;\n}\nelse if (k == 4) {\ncx = (id + 0.10) / 0.7 + (h.x - 0.5) * 0.06;\ncy = 0.02 + 0.03 * h.y;\nrBase = 0.16;\n}\nelse {\ncx = (id + 0.90) / 0.7 + (h.x - 0.5) * 0.06;\ncy = 0.02 + 0.03 * h.y;\nrBase = 0.15;\n}\nfloat radius = rBase * (0.8 + 0.45 * h.y) * cluster;\nif (radius <= 0.02) continue;\nvec2 dVec = vec2(p.x - cx, (relY - cy) * 1.15);\nfloat dist = length(dVec);\nfloat puff = clamp(1.0 - dist / radius, 0.0, 1.0);\npuff = puff * puff * (3.0 - 2.0 * puff);\nmaxField = smax_L101(maxField, puff, 0.05);\nfloat w = puff * puff;\nweightedNorm += (dVec / radius) * w;\nnormWeightSum += w;\n}\n}\nfloat microPuffs = vnoise_L101(p * 6.5 + vec2(2.1, 5.3)) * 0.12;\nfloat totalField = maxField + microPuffs * smoothstep(0.04, 0.25, maxField);\nfloat baseCut = smoothstep(0.0, 0.02, relY);\ndensity = clamp(smoothstep(0.18, 0.45, totalField) * baseCut, 0.0, 1.0);\nnormal = normalize(weightedNorm / normWeightSum + vec2(0.0001));\ndepth = maxField;\n}\nvec4 computeLayer_L101(vec2 uv, vec4 prevLayerColor) {\nvec4 bg = prevLayerColor;\nfloat aspect = uResolution.x / uResolution.y;\nfloat virtualHeight = mix(60.0, 160.0, 1.0 - 0.5500);\nvec2 pixelGrid = vec2(round(virtualHeight * aspect), round(virtualHeight));\nvec2 pixCoord = floor(uv * pixelGrid);\nvec2 pixelUv = (pixCoord + 0.5) / pixelGrid;\nfloat bayer = getBayer4_L101(pixCoord) - 0.5;\nfloat dither = bayer * 1.0000 * 0.12;\nfloat time = uL101_Time * 0.0035 * 0.2600;\nfloat mouseActive = clamp(0.2000, 0.0, 1.0);\nvec2 mouseParallax = (uL101_MousePos - 0.5) * vec2(aspect, 1.0) * mouseActive * -0.1500;\nvec2 aspUv = (pixelUv - vec2(0.3, 0.21999999999999997)) * vec2(aspect, 1.0) / max(0.1, 0.4800 * 2.0);\nfloat sceneY = pixelUv.y - (vec2(0.3, 0.21999999999999997).y - 0.5);\nvec2 bgCloudCoord = aspUv - mouseParallax * 0.12;\nbgCloudCoord.x -= time * 0.35;\nfloat bgSceneY = sceneY - mouseParallax.y * 0.07;\nfloat bgDensity, bgDepth;\nvec2 bgNormal;\nevalCumulus_L101(bgCloudCoord + vec2(14.2, 3.1), bgSceneY, 0.22, 1.35, bgDensity, bgNormal, bgDepth);\nvec2 fgCloudCoord = aspUv - mouseParallax * 0.45;\nfgCloudCoord.x -= time * 0.75;\nfloat fgSceneY = sceneY - mouseParallax.y * 0.24;\nfloat fgDensity, fgDepth;\nvec2 fgNormal;\nevalCumulus_L101(fgCloudCoord, fgSceneY, 0.32, 0.82, fgDensity, fgNormal, fgDepth);\nvec2 lightDir = normalize(vec2(-0.45, 0.75));\nfloat lightDot = dot(fgNormal, lightDir);\nfloat relY = fgSceneY - 0.32;\nfloat baseShadowFactor = 1.0 - smoothstep(0.02, 0.10, relY);\nfloat lightTerm = 0.46 + fgDepth * 0.28 + lightDot * 0.36 + smoothstep(0.04, 0.35, relY) * 0.22;\nlightTerm -= baseShadowFactor * 0.42;\nfloat nightT = clamp(uL101_NightProgress, 0.0, 1.0);\nfloat sunsetTint = smoothstep(0.10, 0.45, nightT) * (1.0 - smoothstep(0.60, 0.90, nightT));\nfloat cloudFade = 1.0 - smoothstep(0.30, 0.85, nightT);\nvec3 cHighlight = mix(vec3(0.99, 1, 1), vec3(1.0, 0.80, 0.56), sunsetTint * 0.85);\nvec3 cBody = mix(vec3(0.86, 0.93, 0.98), vec3(0.92, 0.56, 0.48), sunsetTint * 0.85);\nvec3 cShadow = mix(vec3(0.62, 0.78, 0.92), vec3(0.58, 0.36, 0.48), sunsetTint * 0.85);\nvec3 cBase = mix(vec3(0.38, 0.56, 0.76), vec3(0.30, 0.22, 0.38), sunsetTint * 0.85);\nvec3 fgColor;\nfloat steppedLight = lightTerm + dither;\nif (steppedLight > 0.62) {\nfgColor = cHighlight;\n}\nelse if (steppedLight > 0.42) {\nfgColor = cBody;\n}\nelse if (steppedLight > 0.24) {\nfgColor = cShadow;\n}\nelse {\nfgColor = cBase;\n}\nfloat bgLight = bgDepth * 0.4 + dot(bgNormal, lightDir) * 0.3 + dither;\nvec3 bgCloudColor = (bgLight > 0.35) ? mix(cBody, bg.rgb, 0.25) : mix(cShadow, bg.rgb, 0.35);\nvec3 sceneColor = bg.rgb;\nif (cloudFade > 0.001) {\nif (bgDensity > 0.15) {\nsceneColor = mix(bg.rgb, bgCloudColor, cloudFade);\n}\nfloat fgThreshold = 0.25 - dither * 0.4;\nif (fgDensity > fgThreshold) {\nsceneColor = mix(bg.rgb, fgColor, cloudFade);\n}\n}\nvec3 finalColor = sceneColor;\nif (7 > 0) {\nfinalColor = blend_L101(7, bg.rgb, sceneColor);\n}\nreturn vec4(finalColor, 1.0);\n}\n\nvec4 computeLayer_L0(vec2 uv) {\nvec4 stackResult = computeParentSrc_L0(uv);\nif (stackResult.a < 0.001) return vec4(0.0);\nvec4 sc0 = computeLayer_L101(uv, stackResult);\nsc0 *= uL101_ElemOpacity;\nstackResult = sc0 + stackResult * (1.0 - sc0.a);\nreturn stackResult;\n}\n\nvoid main() {\nvec2 uv = vTextureCoord;\nvec4 result = texture(uBgTexture, uv);\nvec4 c0 = computeLayer_L0(uv);\n{\nvec3 _s = c0.rgb / max(c0.a, 0.0001);\nvec3 _d = result.rgb;\nc0 = vec4(max(_s, _d), 1.0) * (c0.a * uL0_ElemOpacity);\n}\nresult = c0 + result * (1.0 - c0.a);\nfragColor = result;\n}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nin vec3 aVertexPosition;\nin vec2 aTextureCoord;\nuniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nout vec2 vTextureCoord;\nout vec3 vVertexPosition;\nvoid main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvVertexPosition = aVertexPosition;\nvTextureCoord = aTextureCoord;\n}"],"sublayers":[{"id":"ede1074f-3c9f-40e0-af66-08be5abb0573","publicId":"shape1","layerType":"shape","sublayerIndex":100,"opacity":1,"blendMode":"LIGHTEN","animating":false,"width":200,"widthMode":1,"height":200,"heightMode":1,"left":0.45879166666666665,"top":0.47810370370370375,"anchorPoint":0,"aspectRatio":1.7777777777777777},{"id":"47509ae0-df7a-479d-b60f-e9e4f42ae3aa","publicId":"custom1","layerType":"effect","type":"custom","sublayerIndex":101,"opacity":1,"animating":true}],"data":{"uniforms":{"resolution":{"name":"uResolution","type":"2f","value":{"type":"Vec2","_x":1080,"_y":1080}},"mousePos":{"name":"uMousePos","type":"2f","value":{"type":"Vec2","_x":0.5,"_y":0.5}},"artboardResolution":{"name":"uArtboardResolution","type":"2f","value":{"type":"Vec2","_x":1920,"_y":440}},"L100_aspectRatio":{"name":"uAspectRatio","type":"1f","value":1.7777777777777777},"L101_nightProgress":{"name":"uL101_NightProgress","type":"1f","value":0},"L101_time":{"name":"uL101_Time","type":"1f","value":0},"L101_elemOpacity":{"name":"uL101_ElemOpacity","type":"1f","value":1},"L101_mousePos":{"name":"uL101_MousePos","type":"2f","value":{"type":"Vec2","_x":0.5,"_y":0.5}},"L0_elemOpacity":{"name":"uL0_ElemOpacity","type":"1f","value":1}},"textures":[],"timeUniforms":[{"key":"L101_time","speed":0.78,"animating":true}],"mouseUniforms":[{"key":"L101_mousePos","momentum":1,"spring":0,"trackAxes":"xy"}],"hasMouseTracking":true,"hasVideoSublayers":false,"estimatedSublayerWorkRaw":308.90667400360104,"occlusion":{"candidateLayers":0}},"states":{"appear":[],"scroll":[],"hover":[],"mousemove":[]},"breakpoints":[],"userDownsample":1,"visible":true},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"states":{"appear":[],"scroll":[],"hover":[],"mousemove":[{"local":{"pendingChanges":{},"changeDebouncer":null,"dragSession":null},"type":"mousemove","id":"2d67264b-a106-4104-a5c6-f43415cab203","prop":"scale","progress":0,"sensitivity":0.63,"momentum":0.66,"spring":0.65,"_velocity":0,"delay":0,"mode":"velocity","axisMode":"both","point":{"y":0.5,"x":0.5},"value":1,"responsiveProps":{},"lastMousePos":null,"lastMoveTime":null,"breakpoints":["Desktop"],"uniformData":{"type":"1f","name":"uScale"}}]},"layerType":"effect","type":"custom","usesPingPong":false,"texture":false,"textures":[],"animating":true,"mouseMomentum":0.92,"mouseSpring":0.3,"isMask":0,"description":"Interactive pixel art UFO that follows the mouse at night with rotational momentum and beams up a cow when triggered.","compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec2 vTextureCoord;uniform sampler2D uPreviousFrameTexture;\nuniform vec2 uMousePos;out vec4 fragColor;void main() {\nvec4 state = texelFetch(uPreviousFrameTexture, ivec2(0, 0), 0);if (state.a < 0.5) {\nfragColor = vec4(uMousePos.x, 0.0, 0.0, 1.0);\nreturn;\n}float prevX = state.r;\nfloat angle = state.g;\nfloat angVel = state.b;float velX = clamp(uMousePos.x - prevX, -0.15, 0.15);\nfloat mom = clamp(0.8000, 0.0, 1.0);float gain = mix(0.5, 3.2, mom);\nfloat stiffness = mix(0.22, 0.09, mom);\nfloat damping = mix(0.68, 0.88, mom);float torque = velX * gain * clamp(1.0000, 0.0, 1.0);\nangVel = angVel * damping + (torque - angle * stiffness);\nangle = clamp(angle + angVel, -0.45, 0.45);fragColor = vec4(uMousePos.x, angle, angVel, 1.0);\n}","#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform sampler2D uBgTexture;\nuniform vec2 uResolution;\nuniform vec2 uMousePos;\nuniform float uTime;uniform float uScale;\nuniform float uNightProgress;\nuniform float uAbductProgress;vec3 blend (int blendMode, vec3 src, vec3 dst) {\nreturn src;\n}out vec4 fragColor;float hash21(vec2 p) {\np = fract(p * vec2(123.34, 456.21));\np += dot(p, p + 45.32);\nreturn fract(p.x * p.y);\n}vec4 sampleUfoPixel(ivec2 cell, float time) {\nint ax = abs(cell.x);\nint y = cell.y;if (ax == 0 && y == 7) return vec4(0.95, 0.35, 0.35, 1.0);\nif (ax == 0 && y == 6) return vec4(0.65, 0.72, 0.82, 1.0);bool inDome = (y == 5 && ax <= 3) || (y == 4 && ax <= 4) || (y == 3 && ax <= 5) || (y == 2 && ax <= 5);\nbool domeOutline = (y == 5 && ax == 3) || (y == 4 && ax == 4) || (y == 3 && ax == 5) || (y == 6 && ax <= 2);\nif (y == 6 && ax >= 1 && ax <= 2) return vec4(0.12, 0.16, 0.24, 1.0);\nif (inDome) {\nif (domeOutline) return vec4(0.14, 0.20, 0.30, 1.0);\nif ((cell.x == -2 && y == 4) || (cell.x == -3 && y == 3)) return vec4(0.88, 0.98, 1.0, 1.0);\nif (ax <= 1 && y >= 2 && y <= 3) {\nif (ax == 1 && y == 3) return vec4(0.10, 0.15, 0.12, 1.0);\nreturn vec4(0.45, 0.88, 0.42, 1.0);\n}\nreturn vec4(0.38, 0.78, 0.92, 0.92);\n}if (y == 1) {\nif (ax == 9 || ax == 10) return vec4(0.12, 0.16, 0.24, 1.0);\nif (ax <= 8) {\nif (cell.x < -3) return vec4(0.82, 0.88, 0.94, 1.0);\nif (cell.x > 4) return vec4(0.50, 0.58, 0.68, 1.0);\nreturn vec4(0.68, 0.76, 0.85, 1.0);\n}\n}if (y == 0) {\nif (ax == 12 || ax == 11) return vec4(0.12, 0.16, 0.24, 1.0);\nif (ax <= 10) {\nif (ax == 0 || ax == 4 || ax == 8) {\nint lightIdx = (cell.x + 8) / 4;\nfloat chase = mod(floor(time * 4.5), 5.0);\nbool lit = abs(float(lightIdx) - chase) < 0.5 || abs(float(lightIdx) - chase + 5.0) < 0.5;\nvec3 offCol = vec3(0.28, 0.34, 0.42);\nvec3 onCol = mod(float(lightIdx), 2.0) < 0.5 ? vec3(1.0, 0.92, 0.45) : vec3(0.45, 1.0, 0.72);\nreturn vec4(lit ? onCol : offCol, 1.0);\n}\nreturn vec4(0.44, 0.52, 0.62, 1.0);\n}\n}if (y == -1) {\nif (ax == 10 || ax == 9) return vec4(0.12, 0.16, 0.24, 1.0);\nif (ax <= 8) {\nif (ax <= 2) return vec4(0.22, 0.28, 0.36, 1.0);\nreturn vec4(0.32, 0.39, 0.49, 1.0);\n}\n}\nif (y == -2) {\nif (ax <= 6 && ax >= 5) return vec4(0.12, 0.16, 0.24, 1.0);\nif (ax <= 4) return vec4(0.18, 0.24, 0.32, 1.0);\n}\nif (y == -3 && ax <= 2) {\nreturn vec4(0.35, 0.95, 0.65, 0.9);\n}return vec4(0.0);\n}vec4 sampleCowPixel(ivec2 cell) {\nint x = cell.x;\nint y = cell.y;if ((x == -4 && y == 4) || (x == -2 && y == 4)) return vec4(0.88, 0.82, 0.66, 1.0);\nif (x == -1 && y == 3) return vec4(0.18, 0.18, 0.22, 1.0);if (x >= -6 && x <= -2 && y >= 0 && y <= 3) {\nif (x == -6 && (y == 0 || y == 1)) return vec4(0.95, 0.68, 0.72, 1.0);\nif (x == -4 && y == 2) return vec4(0.12, 0.12, 0.15, 1.0);\nif (x == -3 && y == 3) return vec4(0.18, 0.18, 0.22, 1.0);\nreturn vec4(0.96, 0.96, 0.94, 1.0);\n}if (x >= -2 && x <= 4 && y >= -1 && y <= 2) {\nbool spot = (x >= 0 && x <= 2 && y >= 1 && y <= 2) || (x >= 2 && x <= 3 && y == 0);\nif (spot) return vec4(0.18, 0.18, 0.22, 1.0);\nif (x >= 1 && x <= 2 && y == -1) return vec4(0.95, 0.68, 0.72, 1.0);\nreturn vec4(0.96, 0.96, 0.94, 1.0);\n}if ((x == 5 && y == 1) || (x == 5 && y == 0)) return vec4(0.18, 0.18, 0.22, 1.0);if (y >= -4 && y <= -2) {\nif (x == -2 || x == -1 || x == 3 || x == 4) {\nif (y == -4) return vec4(0.22, 0.22, 0.26, 1.0);\nreturn vec4(0.92, 0.92, 0.90, 1.0);\n}\n}return vec4(0.0);\n}void main() {\nvec2 uv = vTextureCoord;\nvec4 bg = texture(uBgTexture, uv);float nightVis = smoothstep(0.42, 0.85, clamp(uNightProgress, 0.0, 1.0));\nfloat masterAlpha = nightVis * clamp(1.0000, 0.0, 1.0);\nif (masterAlpha <= 0.001) {\nfragColor = bg;\nreturn;\n}float time = uTime * 0.04;\nfloat pxSize = mix(2.0, 8.0, clamp(0.2200, 0.0, 1.0));vec2 gridUv = (floor(gl_FragCoord.xy / pxSize) + 0.5) * pxSize / uResolution;\nfloat aspect = uResolution.x / max(uResolution.y, 1.0);vec2 trackedCenter = vec2(0.5, 0.5) + mix(vec2(0.0), uMousePos - 0.5, clamp(1.0000, 0.0, 1.0));\nfloat hoverY = sin(time * 2.2) * 0.015;\nfloat hoverX = cos(time * 1.1) * 0.006;\nvec2 ufoCenter = trackedCenter + vec2(hoverX, hoverY);float cellScale = mix(0.0035, 0.014, clamp(uScale, 0.0, 1.0));\nvec2 delta = vec2((gridUv.x - ufoCenter.x) * aspect, gridUv.y - ufoCenter.y);float dynamicTilt = texelFetch(uTexture, ivec2(0, 0), 0).g;\nfloat tilt = sin(time * 1.4) * 0.05 + dynamicTilt;\nfloat ct = cos(tilt);\nfloat st = sin(tilt);\nvec2 ufoLocal = mat2(ct, -st, st, ct) * delta;\nivec2 ufoCell = ivec2(round(ufoLocal / cellScale));vec4 generated = vec4(0.0);float abductT = clamp(uAbductProgress, 0.0, 1.0);\nfloat beamOpen = smoothstep(0.0, 0.14, abductT) * (1.0 - smoothstep(0.84, 1.0, abductT));\nif (beamOpen > 0.001 && delta.y < -cellScale * 1.5 && delta.y > -0.46) {\nfloat depth = -delta.y;\nfloat halfWidth = mix(cellScale * 2.2, cellScale * 12.5, clamp(depth / 0.42, 0.0, 1.0)) * beamOpen;\nif (abs(delta.x) < halfWidth) {\nfloat edgeNorm = abs(delta.x) / max(halfWidth, 0.0001);\nfloat edgeFade = 1.0 - smoothstep(0.55, 1.0, edgeNorm);\nfloat vertFade = 1.0 - smoothstep(0.28, 0.45, depth);\nfloat scanBand = 0.65 + 0.35 * step(0.45, fract(depth * 18.0 + time * 1.8));\nfloat dither = hash21(floor(gl_FragCoord.xy / pxSize));\nfloat beamAlpha = edgeFade * vertFade * beamOpen * scanBand * 0.55;\nif (beamAlpha > dither * 0.35) {\ngenerated = vec4(vec3(0.35, 1, 0.65), beamAlpha);\n}\n}\n}if (abductT > 0.08 && abductT < 0.88) {\nfloat lift = smoothstep(0.14, 0.82, abductT);\nfloat cowScale = cellScale * mix(1.0, 0.25, smoothstep(0.68, 0.86, abductT));\nfloat cowFade = smoothstep(0.08, 0.18, abductT) * (1.0 - smoothstep(0.76, 0.86, abductT));\nfloat cowY = mix(-0.34, -cellScale * 2.5, lift);\nfloat cowWiggle = sin(time * 5.5) * 0.22;\nfloat cw = cos(cowWiggle);\nfloat sw = sin(cowWiggle);\nvec2 cowDelta = delta - vec2(sin(time * 3.0) * 0.008, cowY);\nvec2 cowLocal = mat2(cw, -sw, sw, cw) * cowDelta;\nivec2 cowCell = ivec2(round(cowLocal / max(cowScale, 0.0005)));\nif (abs(cowCell.x) <= 7 && abs(cowCell.y) <= 5) {\nvec4 cowPx = sampleCowPixel(cowCell);\nif (cowPx.a > 0.01) {\nfloat cAlpha = cowPx.a * cowFade;\nvec3 cCol = mix(cowPx.rgb, vec3(0.35, 1, 0.65), 0.22);\ngenerated.rgb = mix(generated.rgb, cCol, cAlpha);\ngenerated.a = max(generated.a, cAlpha);\n}\n}\n}if (abs(ufoCell.x) <= 13 && ufoCell.y >= -4 && ufoCell.y <= 7) {\nvec4 ufoPx = sampleUfoPixel(ufoCell, time);\nif (ufoPx.a > 0.01) {\ngenerated.rgb = mix(generated.rgb, ufoPx.rgb, ufoPx.a);\ngenerated.a = max(generated.a, ufoPx.a);\n}\n}float finalAlpha = generated.a * masterAlpha;\nvec3 blended = generated.rgb;\nif (0 > 0) {\nblended = blend(0, bg.rgb, generated.rgb);\n}\nfragColor = vec4(mix(bg.rgb, blended, finalAlpha), max(bg.a, finalAlpha));\n}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = vec4(aVertexPosition, 1.0);\nvTextureCoord = (vec4(aTextureCoord, 0.0, 1.0)).xy;\n}"],"customPasses":[{"id":"ufo-state-pass","label":"Tilt Physics","downSample":1,"includeBg":false,"needsPreviousFrame":"pass","pingPong":false,"targetSize":{"height":4,"width":4},"widthSegments":null,"heightSegments":null,"independentGeometry":null,"blend":false,"depthTest":null,"cullFace":null,"texturesOptions":{"premultipliedAlpha":false,"floatingPoint":"half-float","premultiplyAlpha":false}},{"id":"custom-pass-1","label":"UFO & Beam","downSample":1,"includeBg":true,"needsPreviousFrame":null,"pingPong":false,"targetSize":null,"widthSegments":null,"heightSegments":null,"independentGeometry":null,"blend":false,"depthTest":null,"cullFace":null,"texturesOptions":null}],"trackMouse":1,"scale":0.22,"speed":0.5,"trackAxes":"xy","data":{"downSample":1,"depth":false,"uniforms":{"nightProgress":{"name":"uNightProgress","type":"1f","value":0},"abductProgress":{"name":"uAbductProgress","type":"1f","value":0}},"isBackground":false,"passes":[{"id":"custom-pass-1","label":"UFO & Beam","prop":"pass","value":1,"downSample":1,"includeBg":true,"needsPreviousFrame":null,"pingPong":false,"targetSize":null,"widthSegments":null,"heightSegments":null,"independentGeometry":null,"blend":false,"texturesOptions":null}],"blend":false},"id":"481bcc59-7fd6-4cd3-b4dc-079bbc520cbe","publicId":"custom3"}],"options":{"name":"Zazz - Hero Backgrounds","fps":60,"dpi":1,"scale":1,"includeLogo":false,"isProduction":true,"flatten":true},"variables":{"definitions":[{"id":"a6a81120-3b44-4fa6-82a9-5b2e22221064","name":"nightProgress","type":"number","defaultValue":0,"description":"Smoothly transitions the scene from Day (0) through Sunset (~0.45) to Night (1).","validation":{"output":"percent"}},{"id":"d2a7bdcd-ed91-41ee-8d66-dca51a200087","name":"abductProgress","type":"number","defaultValue":0,"description":"Animates the UFO tractor beam and cow abduction from 0 to 1 when triggered on click.","validation":{"output":"percent"}},{"id":"var_lmcli221","name":"particleVisibility","type":"boolean","defaultValue":true,"description":"Show or hide the birds and ufo effects.","validation":{}}],"bindings":[{"id":"bind_jfxo6gjn","layerId":"flat_4","kind":"prop","target":"L101_nightProgress","variableId":"a6a81120-3b44-4fa6-82a9-5b2e22221064","enabled":true},{"id":"bind_99ppk96i","layerId":"3c183a15-bb8a-4fd1-bb0a-21b6ab6a2868","kind":"prop","target":"aiNightProgress","variableId":"a6a81120-3b44-4fa6-82a9-5b2e22221064","enabled":true},{"id":"bind_v93ndp8w","layerId":"481bcc59-7fd6-4cd3-b4dc-079bbc520cbe","kind":"prop","target":"nightProgress","variableId":"a6a81120-3b44-4fa6-82a9-5b2e22221064","enabled":true},{"id":"bind_5386niay","layerId":"481bcc59-7fd6-4cd3-b4dc-079bbc520cbe","kind":"prop","target":"abductProgress","variableId":"d2a7bdcd-ed91-41ee-8d66-dca51a200087","enabled":true},{"id":"bind_6fq0zwc1","layerId":"3c183a15-bb8a-4fd1-bb0a-21b6ab6a2868","kind":"prop","target":"visible","variableId":"var_lmcli221","enabled":true},{"id":"bind_jf7i4ghv","layerId":"481bcc59-7fd6-4cd3-b4dc-079bbc520cbe","kind":"prop","target":"visible","variableId":"var_lmcli221","enabled":true},{"id":"bind_p7aj858a","layerId":"1f800346-5c23-4a53-8b18-205dc8369561","kind":"prop","target":"nightProgress","variableId":"a6a81120-3b44-4fa6-82a9-5b2e22221064","enabled":true}],"presets":[{"id":"preset_ee7wfw1y","name":"Day","description":"Bright daytime sky with pixel art sun and drifting cumulus clouds.","values":{"a6a81120-3b44-4fa6-82a9-5b2e22221064":0},"createdAt":"2026-11-13T17:48:06.858Z","updatedAt":"2026-11-13T17:48:06.858Z"},{"id":"preset_az9rktgs","name":"Sunset","description":"Golden hour sunset with setting sun and warm tinted clouds.","values":{"a6a81120-3b44-4fa6-82a9-5b2e22221064":0.45},"createdAt":"2026-11-13T17:48:06.874Z","updatedAt":"2026-11-13T17:48:06.874Z"},{"id":"preset_mr2c2qq7","name":"Night","description":"Clear night sky with rising crescent moon and twinkling stars.","values":{"a6a81120-3b44-4fa6-82a9-5b2e22221064":1},"createdAt":"2026-11-13T17:48:06.880Z","updatedAt":"2026-11-13T17:48:06.880Z"}]},"version":"2.6.0","id":"BWPAZHp6tUonaqWPXmft"}