{"layers":[{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":0.25,"layerType":"effect","type":"gradient","usesPingPong":false,"texture":false,"animating":false,"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.\nprecision highp float;in vec2 vTextureCoord;uniform vec2 uMousePos;const float PI = 3.14159265359;vec2 rotate(vec2 coord, float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn vec2(\ncoord.x * c - coord.y * s,\ncoord.x * s + coord.y * c\n);\n}out vec4 fragColor;vec3 getBgColor(vec2 uv) {return vec3(0.9803921568627451, 0.9764705882352941, 0.9686274509803922);\n}void main() {vec2 uv = vTextureCoord;\nvec2 pos = vec2(0.5034843205574913, 0.005226480836237002) + mix(vec2(0), (uMousePos-0.5), 0.0000);\nuv -= pos;\nuv /= max(1.0120*2., 1e-5);\nuv = rotate(uv, (0.0000 - 0.5) * 2. * PI);\nvec4 color = vec4(getBgColor(uv), 1.0) * 1.0000;\nfragColor = color;\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 mediump float;in vec3 aVertexPosition;\nin vec2 aTextureCoord;uniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = aTextureCoord;\n}"],"speed":0.25,"trackMouse":0,"trackAxes":"xy","data":{"downSample":0.5,"depth":false,"uniforms":{},"isBackground":true},"id":"gradient","publicId":"gradient"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"aurora","usesPingPong":false,"texture":false,"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.\nprecision highp float;\nprecision highp int;in vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform float uTime;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nvec4 applyLayerMixAlpha(vec4 color, vec4 bg, float amount) {\nreturn mix(bg, color, amount);\n}\nuvec2 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 randFibo(vec2 p) {\nuvec2 v = floatBitsToUint(p);\nv = pcg2d(v);\nuint r = v.x ^ v.y;\nreturn float(r) / float(0xffffffffu);\n}\nfloat deband() {\nreturn (randFibo(gl_FragCoord.xy) - 0.5) / 255.0;\n}out vec4 fragColor;ivec2 customTexSize;\nfloat customTexAspect;const float PI = 3.14159265359;\nconst float TAU = 6.28318530718;\nconst int MAX_AURORA_ITERATIONS = 36;\nconst float DYNAMIC_BLUR_EXP_SCALE = 2.0 * 1.4426950408889634;vec3 palette(float t, vec3 a, vec3 b, vec3 c, vec3 d) {\nreturn a + b*cos( TAU*(c*t+d) );\n}vec3 Tonemap_Reinhard(vec3 x) {\nx *= 4.;\nreturn x / (1.0 + x);\n}float sdEllipse(vec2 st, float r) {\nfloat a = length(st + vec2(0, r * 0.8)) - r;\nfloat b = length(st + vec2(0, -r * 0.8)) - r;\nreturn (a + b);\n}float getSdf(vec2 st, float md) {\nreturn sdEllipse(st, 1.1500);\n}vec2 turbulence(vec2 pos, float offset, float baseFrequency, float amplitudeStart, float phaseTime, vec2 mouseOffset) {\nmat2 rotationStep = mat2(0.6, -0.8, 0.8, 0.6);\nfloat frequency = baseFrequency;\nfloat amplitude = amplitudeStart;\nfloat frequencyMultiplier = 1.4;\nfor(float i = 0.; i < 4.; i++) {\nvec2 wave = sin(frequency * ((pos - mouseOffset) * rotationStep) + i * phaseTime + offset);\npos += amplitude * rotationStep[0] * wave / frequency;\nrotationStep *= mat2(0.6, -0.8, 0.8, 0.6);\namplitude *= mix(1., max(wave.y, wave.x), 0.0000);\nfrequency *= frequencyMultiplier;\n}return pos;\n}void main() {\nvec2 uv = vTextureCoord;\nvec4 bg = texture(uTexture, uv);\nvec3 auroraLines = vec3(0.);\nvec3 bloom = vec3(0.);\nfloat auroraMask = 0.;\nfloat bloomMask = 0.;\nfloat time = uTime * 0.5 + 0.0000;\nvec2 aspect = vec2(uResolution.x/uResolution.y, 1);\nvec2 mouseOffset = mix(vec2(0), uMousePos - 0.5, 0.0000);\nvec2 pos = (uv * aspect - vec2(0.8937282229965158, 0.2017421602787457) * aspect);\nfloat mouseDistance = length(uv * aspect - uMousePos * aspect);\nfloat mouseAmplitude = mix(1., smoothstep(1., 5., 1./mouseDistance), 0.0000);\nfloat rotation = 0.6750 * -2.0 * PI;\nmat2 rotMatrix = mat2(cos(rotation), -sin(rotation), sin(rotation), cos(rotation));\npos = rotMatrix * pos;\nfloat blurMultiplier = 0.05;int activeIterations = clamp(int(floor(float(36))), 1, MAX_AURORA_ITERATIONS);\nfloat activeIterationsF = float(activeIterations);\nfloat turbulenceBaseFrequency = mix(2., 15., 0.1000);\nfloat turbulenceAmplitude = 0.4400 * mouseAmplitude;\nfloat turbulencePhaseTime = time * 0.1 + 0.0000;\nfloat colorScaleFactor = mix(0.1, 1.9, 0.4500);\nvec2 prevPos = turbulence(pos, 0. - 1./activeIterationsF, turbulenceBaseFrequency, turbulenceAmplitude, turbulencePhaseTime, mouseOffset);\nfloat spacing = mix(1., TAU, 0.4100);\nfloat smoothing = 0.8500;\nfor(int i = 0; i < MAX_AURORA_ITERATIONS; i++) {\nfloat iterationIndex = float(i + 1);if(iterationIndex > activeIterationsF) {\nbreak;\n}float iterationProgress = iterationIndex/activeIterationsF;\nvec2 warpedPos = turbulence(pos, iterationProgress * spacing, turbulenceBaseFrequency, turbulenceAmplitude, turbulencePhaseTime, mouseOffset);\nfloat shapeDistance = abs(getSdf(warpedPos, mouseAmplitude));\nfloat positionDelta = distance(warpedPos, prevPos);\nprevPos = warpedPos;float dynamicBlur = exp2(positionDelta * DYNAMIC_BLUR_EXP_SCALE) - 1.0;\nfloat blurWidth = 0.0000 * blurMultiplier + max(dynamicBlur * smoothing, 0.001);\nfloat lineMask = smoothstep(0., blurWidth, shapeDistance);\nfloat lineStrength = 1. - lineMask;\nvec3 color = palette(iterationProgress * colorScaleFactor + 0.1500, vec3(0.5), vec3(0.5), vec3(1), vec3(0.40784313725490196, 0.3058823529411765, 0.17254901960784313));\nfloat inverseDistance = 1./max(shapeDistance + dynamicBlur, 0.001);\nfloat bloomStrength = clamp(inverseDistance, 0., 250.);\nauroraLines -= lineStrength * color;\nauroraMask += lineStrength;\nbloom += bloomStrength * color;\nbloomMask += bloomStrength;\n}auroraLines *= 1./activeIterationsF * 2.0;\nauroraMask *= 1./activeIterationsF * 2.0;\nbloom = bloom / (bloom + 2e4);\nbloomMask = bloomMask / (bloomMask + 2e4);vec3 color = (-auroraLines + bloom * 3. * 0.2600);\nfloat accumulation = (auroraMask + bloomMask * 3. * 0.2600) * 1.2;\ncolor *= 1.2;\ncolor += deband();\ncolor = Tonemap_Reinhard(color);\nvec3 blended;\nfloat effectAlpha = clamp(Tonemap_Reinhard(vec3(accumulation)).r, 0.0, 1.0);\nfloat alpha = max(bg.a, effectAlpha);\nfloat transmittance = 1.0 - effectAlpha;\nblended = color + bg.rgb * transmittance;\nvec4 auroraColor = applyLayerMixAlpha(vec4(blended, alpha), bg, 1.0000);\nfragColor = auroraColor;}"],"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 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}"],"speed":0.13,"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"aurora","publicId":"aurora"}],"options":{"name":"Blog Hero Element","fps":30,"dpi":1,"scale":0.5,"includeLogo":false,"isProduction":true,"flatten":false,"freePlan":false,"width":1440,"height":900},"version":"2.4.3","id":"9CvsK6sSriIGBRKII4JI","designName":"Blog Hero Element","designId":"R2aazuocbJF8KT1WmEhW","canvasId":"e236451b-1dba-4be0-8e41-626259679f55","projectName":"Blog Hero Element","sceneName":"Scene"}