{"history": [{"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 0.75, "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, 0, 0);\n}void main() {vec2 uv = vTextureCoord;\nvec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000);\nuv -= pos;\nuv /= max(0.5000*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": "d05d78ea-cd23-49d0-8375-b7487a0be810", "publicId": "gradient"}, {"breakpoints": [], "visible": true, "aspectRatio": 1.7768331562167907, "userDownsample": 1, "states": {"appear": [], "scroll": [], "hover": [], "mousemove": []}, "effects": [], "anchorPoint": 8, "mask": 0, "maskInvert": 0, "maskDepth": 0, "maskDepthLayer": 0, "layerType": "image", "width": 450, "widthMode": 1, "height": 253.25956937799043, "heightMode": 2, "left": 0.5, "top": 0.5, "src": "/smeller/sm1.webp?v=07aa9e17", "imageNaturalSize": {"type": "Vec2", "_x": 1672, "_y": 941}, "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 sampler2D uSourceImage;uniform vec2 uArtboardResolution;\nuniform vec2 uMousePos;\nuniform sampler2D uBgTexture;const float TAU = 6.28318530718;\nconst float PI = 3.14159265359;out vec4 fragColor;vec4 sampleImage(vec2 canvasUV, vec2 mouseOffset, vec2 mouseRotOffset) {\nvec2 canvasPos = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);\nvec2 imageUV;float imageAspect = vec2(1672, 941).x / vec2(1672, 941).y;\nfloat canvasAspect = uArtboardResolution.x / uArtboardResolution.y;\nvec2 fitSize = vec2(\n(canvasAspect < imageAspect) ? uArtboardResolution.y * imageAspect : uArtboardResolution.x,\n(canvasAspect < imageAspect) ? uArtboardResolution.y : uArtboardResolution.x / imageAspect\n);\nvec2 offset = (uArtboardResolution - fitSize) * 0.5;\nvec2 adjustedPos = canvasPos + mouseOffset;\nimageUV = (adjustedPos - offset) / fitSize;\nvec2 flippedUV = vec2(imageUV.x, 1.0 - imageUV.y);\nvec4 color = textureLod(uSourceImage, flippedUV, 0.0);\nif (imageUV.x >= 0.0 && imageUV.x <= 1.0 && imageUV.y >= 0.0 && imageUV.y <= 1.0) {\nreturn color;\n} else {\nreturn vec4(0.0);\n}\n}vec4 getNormalOutput(vec4 color, vec4 background) {\nreturn mix(background, color + background * (1.0 - color.a), 1.0000 * color.a);\n}vec4 getOutputByMode(vec4 color, vec4 background) {\nreturn getNormalOutput(color, background);\n}vec4 applyImageAdjustments(vec4 color) {color.rgb *= color.a;color.rgb = clamp(color.rgb, 0.0, 1.0);\nreturn color;\n}vec4 getCompositeOutput(vec2 uv, vec2 mouseOffsetPx, vec2 mouseRotOffset) {\nvec4 background = vec4(0);background = texture(uBgTexture, vTextureCoord);\nvec4 color = sampleImage(uv, mouseOffsetPx, mouseRotOffset);\ncolor = applyImageAdjustments(color);return getOutputByMode(color, background);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 mouseOffsetUV = (uMousePos - 0.5) * 0.0000;\nvec2 mouseOffsetPx = mouseOffsetUV;\nvec2 mouseRotOffset = (uMousePos - 0.5) * 0.0000 * PI * 0.5;\nuv -= mouseOffsetUV;\nfragColor = getCompositeOutput(uv, mouseOffsetPx, mouseRotOffset);\n}"], "data": {"uniforms": {"artboardResolution": {"name": "uArtboardResolution", "type": "2f", "value": {"type": "Vec2", "_x": 1440, "_y": 900}}, "aspectRatio": {"name": "uAspectRatio", "type": "1f", "value": 1.7768331562167907}}, "elementOpacity": 1}, "id": "d9a45151-4306-495c-b1e7-e99e5cab7ea8", "publicId": "image"}, {"breakpoints": [], "visible": true, "aspectRatio": 1.7768331562167907, "userDownsample": 1, "states": {"appear": [], "scroll": [], "hover": [], "mousemove": []}, "effects": ["18d0f3ab-cdb9-43fb-8a3b-870fb5fb09c1"], "anchorPoint": 8, "mask": 0, "maskInvert": 0, "maskDepth": 0, "maskDepthLayer": 0, "layerType": "image", "width": 450, "widthMode": 1, "height": 251.1627906976744, "heightMode": 2, "left": 0.5, "top": 0.5, "src": "/smeller/sm2.webp?v=38563bce", "imageNaturalSize": {"type": "Vec2", "_x": 1672, "_y": 941}, "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 sampler2D uSourceImage;uniform vec2 uArtboardResolution;\nuniform vec2 uMousePos;const float TAU = 6.28318530718;\nconst float PI = 3.14159265359;out vec4 fragColor;vec4 sampleImage(vec2 canvasUV, vec2 mouseOffset, vec2 mouseRotOffset) {\nvec2 canvasPos = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);\nvec2 imageUV;float imageAspect = vec2(1672, 941).x / vec2(1672, 941).y;\nfloat canvasAspect = uArtboardResolution.x / uArtboardResolution.y;\nvec2 fitSize = vec2(\n(canvasAspect < imageAspect) ? uArtboardResolution.y * imageAspect : uArtboardResolution.x,\n(canvasAspect < imageAspect) ? uArtboardResolution.y : uArtboardResolution.x / imageAspect\n);\nvec2 offset = (uArtboardResolution - fitSize) * 0.5;\nvec2 adjustedPos = canvasPos + mouseOffset;\nimageUV = (adjustedPos - offset) / fitSize;\nvec2 flippedUV = vec2(imageUV.x, 1.0 - imageUV.y);\nvec4 color = textureLod(uSourceImage, flippedUV, 0.0);\nif (imageUV.x >= 0.0 && imageUV.x <= 1.0 && imageUV.y >= 0.0 && imageUV.y <= 1.0) {\nreturn color;\n} else {\nreturn vec4(0.0);\n}\n}vec4 applyImageAdjustments(vec4 color) {color.rgb *= color.a;color.rgb = clamp(color.rgb, 0.0, 1.0);\nreturn color;\n}vec4 getSourceOutput(vec2 uv, vec2 mouseOffsetPx, vec2 mouseRotOffset) {\nvec4 color = sampleImage(uv, mouseOffsetPx, mouseRotOffset);\nreturn applyImageAdjustments(color);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 mouseOffsetUV = (uMousePos - 0.5) * 0.0000;\nvec2 mouseOffsetPx = mouseOffsetUV;\nvec2 mouseRotOffset = (uMousePos - 0.5) * 0.0000 * PI * 0.5;\nuv -= mouseOffsetUV;\nfragColor = getSourceOutput(uv, mouseOffsetPx, mouseRotOffset);\n}"], "data": {"uniforms": {"artboardResolution": {"name": "uArtboardResolution", "type": "2f", "value": {"type": "Vec2", "_x": 1440, "_y": 900}}, "aspectRatio": {"name": "uAspectRatio", "type": "1f", "value": 1.7768331562167907}}, "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": "a17fa584-287c-41cf-92f5-658a37e969b9", "publicId": "image1"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 0.75, "layerType": "effect", "type": "mouse", "usesPingPong": true, "texture": false, "parentLayer": "18d0f3ab-cdb9-43fb-8a3b-870fb5fb09c1", "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;\nin vec3 vVertexPosition;uniform sampler2D uTexture;\nuniform sampler2D uPingPongTexture;\nuniform vec2 uResolution;const float PI = 3.14159265359;\nconst float ITERATIONS = 24.0;out vec4 fragColor;vec3 decodeTrailField(vec4 color) {\nfloat density = color.b;\nif (density <= 0.0001) {\nreturn vec3(0.0);\n}\nreturn vec3(color.rg * 2.0 - 1.0, density);\n}vec3 chromatic_aberration(vec3 color, vec2 uv, vec2 offset) {\nvec4 left = texture(uTexture, uv - offset);\nvec4 right = texture(uTexture, uv + offset);color.r = left.r;\ncolor.b = right.b;return color;\n}vec4 revealTrail(vec2 uv, vec2 mouseDir, float strength) {\nvec4 color = vec4(0);\nfloat zMix = strength;\nvec2 distorted = mouseDir * 0.4 * 0.0000;\nuv -= distorted;\ncolor = texture(uTexture, uv);\ncolor.rgb = chromatic_aberration(color.rgb, uv, distorted * 0.7300 * 0.12);\ncolor = mix(vec4(vec3(0, 0, 0), 0.0000), color, zMix);\nreturn color;\n}vec4 getTrailColor(vec2 uv, vec2 mouseDir, float strength, float aspectRatio) {\nvec4 color = vec4(0);return revealTrail(uv, mouseDir, strength);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 pingpongUv = uv;\nfloat aspectRatio = uResolution.x / uResolution.y;vec3 mouseTrail = decodeTrailField(texture(uPingPongTexture, pingpongUv));\nfloat strength = mouseTrail.z * (0.5600 * 1.5);\nvec2 direction = length(mouseTrail.xy) > 0.0001 ? normalize(mouseTrail.xy) : vec2(0.0);\nvec2 mouseDir = direction * strength;vec4 color = getTrailColor(uv, mouseDir, strength, aspectRatio);\nfragColor = color;\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 vec3 vVertexPosition;\nin vec2 vTextureCoord;uniform sampler2D uPingPongTexture;\nuniform vec2 uPreviousMousePos;uniform vec2 uMousePos;\nuniform vec2 uResolution;const float PI = 3.14159265359;out vec4 fragColor;vec3 decodeTrailField(vec4 color) {\nfloat density = color.b;\nif (density <= 0.0001) {\nreturn vec3(0.0);\n}\nreturn vec3(color.rg * 2.0 - 1.0, density);\n}vec4 encodeTrailField(vec2 vector, float density) {\ndensity = clamp(density, 0.0, 1.0);\nif (density <= 0.0001) {\nreturn vec4(0.5, 0.5, 0.0, 1.0);\n}\nvec2 packedVector = clamp(vector, vec2(-1.0), vec2(1.0)) * 0.5 + 0.5;\nreturn vec4(packedVector, density, 1.0);\n}mat2 rot(float a) {\nreturn mat2(cos(a), -sin(a), sin(a), cos(a));\n}vec2 liquify(vec2 st, vec2 dir, float strength) {\nfloat aspectRatio = uResolution.x / uResolution.y;\nst.x *= aspectRatio;\nst -= dir * 0.005;\nfloat amplitude = smoothstep(0.0, 1.0, strength) * 0.005;\nfor (float i = 1.0; i <= 5.0; i++) {\nst = st * rot(i / 5.0 * PI * 2.0);\nst += vec2(\namplitude * cos(i * 5.0 * st.y + strength),\namplitude * sin(i * 5.0 * st.x + strength)\n);\n}\nst.x /= aspectRatio;\nreturn st;\n}vec3 crossBlurTrailField(sampler2D tex, vec2 uv, float radius) {\nvec3 field = decodeTrailField(texture(tex, uv)) * 0.4;\nfield += decodeTrailField(texture(tex, uv + vec2(radius, 0.0))) * 0.15;\nfield += decodeTrailField(texture(tex, uv + vec2(-radius, 0.0))) * 0.15;\nfield += decodeTrailField(texture(tex, uv + vec2(0.0, radius))) * 0.15;\nfield += decodeTrailField(texture(tex, uv + vec2(0.0, -radius))) * 0.15;\nreturn field;\n}void main() {\nfloat aspectRatio = uResolution.x / uResolution.y;\nvec2 aspectVec = vec2(aspectRatio, 1.0);\nvec2 uv = vTextureCoord;\nvec2 correctedUv = uv * aspectVec;vec2 dir = (uMousePos - uPreviousMousePos) * aspectVec;\nfloat dist = length(dir);\nif (dist > 0.0) {\ndir = dir / dist;\n} else {\ndir = vec2(1.0, 0.0);\n}float rad = 1.2100 * 0.6 * mix(aspectRatio, 1.0, 0.5);\nvec3 lastField = vec3(0.0);\nlastField = decodeTrailField(texture(uPingPongTexture, uv));\nfloat prevVectorLength = length(lastField.xy);\nif (lastField.z > 0.0001 && prevVectorLength > 0.0001) {\nuv = mix(uv, liquify(uv, lastField.xy / prevVectorLength, lastField.z), 0.1500);\n}float t = dist > 0.0 ? clamp(dot(correctedUv - uPreviousMousePos * aspectVec, dir) / dist, 0.0, 1.0) : 0.0;\nvec2 closestPoint = mix(uPreviousMousePos, uMousePos, t) * aspectVec;\nfloat distanceToLine = distance(correctedUv, closestPoint);float shrink = mix(0.5, 1.0, clamp(dist * 20.0, 0.0, 1.0));\nrad *= shrink;float s = 1.0 - smoothstep(rad * 0.0000, rad, distanceToLine);s = s * s;vec2 sampleUv = mix(uv, uv / (1.0 + 0.0000 * 0.03) + 0.0000 * 0.015, 0.0000);lastField = crossBlurTrailField(uPingPongTexture, sampleUv, 0.003);\nfloat decay = pow(0.9600, 0.1);\nvec2 decayedVector = lastField.xy * decay;\nfloat decayedDensity = lastField.z * decay;\nfloat currentDensity = clamp(min(1.0, dist * 10.0) * s, 0.0, 1.0);\nvec2 currentVector = dir * currentDensity;vec2 drawVector = decayedVector + currentVector;\nfloat drawDensity = max(decayedDensity, currentDensity);fragColor = encodeTrailField(drawVector, drawDensity);\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;\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;out vec2 vTextureCoord;\nout vec3 vVertexPosition;void main() {\ngl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\nvTextureCoord = aTextureCoord;\n}"], "data": {"depth": false, "uniforms": {}, "isBackground": false, "pingPongTexturesOptions": {"floatingPoint": "half-float", "premultiplyAlpha": true}}, "id": "131150ec-93d7-45b2-aaa2-25dc82cf802d", "publicId": "mouse_trail"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "states": {"appear": [], "scroll": [], "hover": [], "mousemove": []}, "effects": ["73b98de9-6d07-42e0-976b-ef47d1bf427a"], "anchorPoint": 8, "mask": 0, "maskInvert": 0, "maskDepth": 0, "maskDepthLayer": 0, "layerType": "image", "width": 35.39999999999998, "widthMode": 1, "height": 35.39999999999998, "heightMode": 2, "left": 0.6601769911504425, "top": 0.4381111111111111, "src": "/smeller/pons.webp?v=75f6762e", "imageNaturalSize": {"type": "Vec2", "_x": 200, "_y": 200}, "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 sampler2D uSourceImage;uniform vec2 uArtboardResolution;\nuniform 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 apply3DRotation(vec2 uv, vec2 elementCenter, vec2 elementSize, float rotX, float rotY, float fov, vec2 mouseRotOffset) {\nfloat angleX = rotX * TAU + mouseRotOffset.y;\nfloat angleY = rotY * TAU + mouseRotOffset.x;\nif (abs(angleX) < 0.001 && abs(angleY) < 0.001) {\nreturn uv;\n}\nvec2 pos = uv - 0.5;\nfloat aspect = elementSize.x / elementSize.y;\npos.x *= aspect;\nfloat focalLength = mix(0.5, 4.0, fov);\nfloat cosX = cos(angleX);\nfloat sinX = sin(angleX);\nfloat cosY = cos(angleY);\nfloat sinY = sin(angleY);\nvec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));\nvec3 r1;\nr1.x = rayDir.x * cosY - rayDir.z * sinY;\nr1.y = rayDir.y;\nr1.z = rayDir.x * sinY + rayDir.z * cosY;\nvec3 r2;\nr2.x = r1.x;\nr2.y = r1.y * cosX + r1.z * sinX;\nr2.z = -r1.y * sinX + r1.z * cosX;\nvec3 camPos = vec3(0.0, 0.0, -focalLength);\nvec3 c1;\nc1.x = camPos.x * cosY - camPos.z * sinY;\nc1.y = camPos.y;\nc1.z = camPos.x * sinY + camPos.z * cosY;\nvec3 c2;\nc2.x = c1.x;\nc2.y = c1.y * cosX + c1.z * sinX;\nc2.z = -c1.y * sinX + c1.z * cosX;\nif (abs(r2.z) < 0.01) {\nreturn vec2(-1.0);\n}\nfloat t = -c2.z / r2.z;\nif (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}\nvec2 intersection = vec2(c2.x + t * r2.x, c2.y + t * r2.y);\nif (abs(intersection.x) > 2.0 || abs(intersection.y) > 2.0) {\nreturn vec2(-1.0);\n}\nintersection.x /= aspect;\nreturn intersection + 0.5;\n}vec2 getAnchorOffsets() {\nreturn vec2(0.5, 0.5);\n}vec4 sampleImage(vec2 canvasUV, vec2 mouseOffset, vec2 mouseRotOffset) {\nvec2 canvasPos = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);\nvec2 imageUV;float absWidth = 35.4000;\nfloat absHeight = 35.4000 * uArtboardResolution.y;\nabsWidth = absWidth;\nabsHeight = (1 != 2 && 2 == 2) ? absWidth / 1.0000 : absHeight;vec2 elementSizePx = vec2(absWidth, absHeight);\nvec2 elementPosPx = vec2(0.6602, 0.4381) * uArtboardResolution - getAnchorOffsets() * elementSizePx;vec2 centerPos = elementPosPx + (elementSizePx * 0.5);\nvec2 relPos = canvasPos - centerPos + mouseOffset;\nvec2 unrotatedRelPos = rotate2D(relPos, 0.0000 * -TAU);\nvec2 elementPos = unrotatedRelPos + (elementSizePx * 0.5);\nimageUV = elementPos / elementSizePx;\nimageUV = apply3DRotation(imageUV, vec2(0.5), vec2(200, 200), -0.1000, -0.0278, 1.0000, mouseRotOffset);\nvec2 flippedUV = vec2(imageUV.x, 1.0 - imageUV.y);\nvec4 color = textureLod(uSourceImage, flippedUV, 0.0);\nif (imageUV.x >= 0.0 && imageUV.x <= 1.0 && imageUV.y >= 0.0 && imageUV.y <= 1.0) {\nreturn color;\n} else {\nreturn vec4(0.0);\n}\n}vec4 applyImageAdjustments(vec4 color) {float luminance = dot(color.rgb, vec3(0.299, 0.587, 0.114));\ncolor.rgb = mix(vec3(luminance), color.rgb, 0.7600);color.rgb *= color.a;color.rgb = clamp(color.rgb, 0.0, 1.0);\nreturn color;\n}vec4 getSourceOutput(vec2 uv, vec2 mouseOffsetPx, vec2 mouseRotOffset) {\nvec4 color = sampleImage(uv, mouseOffsetPx, mouseRotOffset);\nreturn applyImageAdjustments(color);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 mouseOffsetUV = (uMousePos - 0.5) * 0.0000;\nvec2 mouseOffsetPx = mouseOffsetUV;\nvec2 mouseRotOffset = (uMousePos - 0.5) * 0.0000 * PI * 0.5;\nuv -= mouseOffsetUV;\nfragColor = getSourceOutput(uv, mouseOffsetPx, mouseRotOffset);\n}"], "data": {"uniforms": {"artboardResolution": {"name": "uArtboardResolution", "type": "2f", "value": {"type": "Vec2", "_x": 1440, "_y": 900}}, "aspectRatio": {"name": "uAspectRatio", "type": "1f", "value": 1}}, "elementOpacity": 0.31, "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;vec4 displacement(vec2 st, vec4 bg, vec4 color) {vec2 normal = vec2(bg.r * 2.0 - 1.0, bg.g * 2.0 - 1.0) * 0.1;\nvec2 displacedUV = st + normal * 0.5000;\ndisplacedUV = clamp(displacedUV, 0.0, 1.0);\nreturn texture(uTexture, displacedUV);\n}out vec4 fragColor;vec4 getNormalOutput(vec4 color, vec4 background) {\nreturn mix(background, color + background * (1.0 - color.a), 0.3100);\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);color = displacement(uv, background, color);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": "37bad423-5ed9-4b41-b9ec-7975d66c2888", "publicId": "image2"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "layerType": "effect", "type": "custom", "usesPingPong": false, "texture": false, "textures": [], "parentLayer": "73b98de9-6d07-42e0-976b-ef47d1bf427a", "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;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform float uTime;uniform sampler2D uMaskTexture;\nuniform int uIsMask;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nuniform float uParentTrackMouse;const float PI = 3.14159265359;\nconst float TAU = 6.28318530718;out vec4 fragColor;mat2 rotate2D(float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn mat2(c, s, -s, c);\n}vec2 apply3DRotation(vec2 uv, vec2 pivot, vec2 size, vec2 tilt, float perspective) {\nif (abs(tilt.x) < 0.001 && abs(tilt.y) < 0.001) {\nreturn uv;\n}vec2 pos = uv - pivot;\nfloat aspect = size.x / max(size.y, 0.0001);\npos.x *= aspect;float focalLength = mix(0.5, 4.0, perspective);float cosX = cos(tilt.y);\nfloat sinX = sin(tilt.y);\nfloat cosY = cos(tilt.x);\nfloat sinY = sin(tilt.x);vec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));vec3 rotYDir = vec3(\nrayDir.x * cosY - rayDir.z * sinY,\nrayDir.y,\nrayDir.x * sinY + rayDir.z * cosY\n);vec3 rotDir = vec3(\nrotYDir.x,\nrotYDir.y * cosX + rotYDir.z * sinX,\n-rotYDir.y * sinX + rotYDir.z * cosX\n);vec3 camPos = vec3(0.0, 0.0, -focalLength);vec3 rotYCam = vec3(\ncamPos.x * cosY - camPos.z * sinY,\ncamPos.y,\ncamPos.x * sinY + camPos.z * cosY\n);vec3 rotCam = vec3(\nrotYCam.x,\nrotYCam.y * cosX + rotYCam.z * sinX,\n-rotYCam.y * sinX + rotYCam.z * cosX\n);if (abs(rotDir.z) < 0.01) {\nreturn vec2(-1.0);\n}float t = -rotCam.z / rotDir.z;if (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}vec2 intersection = vec2(rotCam.x + t * rotDir.x, rotCam.y + t * rotDir.y);\nintersection.x /= aspect;return intersection + pivot;\n}vec2 getAnimatedTranslate(float animationTime) {\nvec2 startPos = vec2(vec2(0.8336098820058997, 0.07355621107833493).x, 1.0 - vec2(0.8336098820058997, 0.07355621107833493).y);\nfloat span = mix(1.8, 3.4, 1.0000);\nfloat minX = 0.5 - span * 0.5;\nfloat progress = mod(startPos.x - minX + animationTime * 0.5, span);\nreturn vec2(minX + progress, startPos.y);\n}vec2 distortUV(vec2 uv) {\nfloat animationTime = uTime * 0.01;\nvec2 mouseOffset = mix(vec2(0.0), uMousePos - 0.5, 0.0000);\nvec2 pivot = vec2(0.701, 0.518) + mouseOffset;\nvec2 animatedTranslate = getAnimatedTranslate(animationTime);\nvec2 translatedUV = uv - ((animatedTranslate + (uMousePos - 0.5) * 0.0000 - 0.5) * 2.0);\nvec2 tiltMouseOffset = (vec2(uMousePos.x, 1.0 - uMousePos.y) - 0.5) * 0.0000 * PI;\nvec2 tiltedUV = apply3DRotation(\ntranslatedUV,\npivot,\nuResolution,\n(vec2(0.5, 0.5) - 0.5) * PI + tiltMouseOffset,\n0.6200\n);vec2 delta = tiltedUV - pivot;\nfloat aspect = uResolution.x / max(uResolution.y, 0.0001);\ndelta.x *= aspect;delta = rotate2D(0.0432 * TAU) * delta;\ndelta = mat2(1.0, (vec2(0.38, 0.5).y - 0.5) * 2.0, (vec2(0.38, 0.5).x - 0.5) * 2.0, 1.0) * delta;\ndelta /= exp2((vec2(0.77, 0.5) - 0.5) * 4.0) * exp2((0.5000 - 0.5) * 4.0);delta.x /= aspect;vec2 transformedUV = pivot + delta;transformedUV = fract(transformedUV);return transformedUV;\n}void main() {\nvec2 uv = distortUV(vTextureCoord);\nvec4 color = vec4(0.0);\nif (1 == 1 || (uv.x >= 0.0 && uv.x <= 1.0 && uv.y >= 0.0 && uv.y <= 1.0)) {\ncolor = texture(uTexture, uv);\n}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;}"], "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}"], "customPasses": [{"id": "custom-pass-1", "label": "Pass 1", "downSample": null, "includeBg": false, "needsPreviousFrame": null, "pingPong": false, "targetSize": null, "widthSegments": null, "heightSegments": null, "independentGeometry": null, "blend": null, "depthTest": false, "cullFace": null, "texturesOptions": null}], "trackMouse": 0, "speed": 0.5, "trackAxes": "xy", "data": {"depth": false, "uniforms": {}, "isBackground": false, "passes": []}, "id": "3adb4787-6d74-4716-96d9-4855e0930b44", "publicId": "custom"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "layerType": "effect", "type": "custom", "usesPingPong": false, "texture": false, "textures": [], "parentLayer": "2f249e6b-1fd5-4c2f-8127-20a2c2a3e974", "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;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform float uTime;uniform sampler2D uMaskTexture;\nuniform int uIsMask;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nuniform float uParentTrackMouse;const float PI = 3.14159265359;\nconst float TAU = 6.28318530718;out vec4 fragColor;mat2 rotate2D(float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn mat2(c, s, -s, c);\n}vec2 apply3DRotation(vec2 uv, vec2 pivot, vec2 size, vec2 tilt, float perspective) {\nif (abs(tilt.x) < 0.001 && abs(tilt.y) < 0.001) {\nreturn uv;\n}vec2 pos = uv - pivot;\nfloat aspect = size.x / max(size.y, 0.0001);\npos.x *= aspect;float focalLength = mix(0.5, 4.0, perspective);float cosX = cos(tilt.y);\nfloat sinX = sin(tilt.y);\nfloat cosY = cos(tilt.x);\nfloat sinY = sin(tilt.x);vec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));vec3 rotYDir = vec3(\nrayDir.x * cosY - rayDir.z * sinY,\nrayDir.y,\nrayDir.x * sinY + rayDir.z * cosY\n);vec3 rotDir = vec3(\nrotYDir.x,\nrotYDir.y * cosX + rotYDir.z * sinX,\n-rotYDir.y * sinX + rotYDir.z * cosX\n);vec3 camPos = vec3(0.0, 0.0, -focalLength);vec3 rotYCam = vec3(\ncamPos.x * cosY - camPos.z * sinY,\ncamPos.y,\ncamPos.x * sinY + camPos.z * cosY\n);vec3 rotCam = vec3(\nrotYCam.x,\nrotYCam.y * cosX + rotYCam.z * sinX,\n-rotYCam.y * sinX + rotYCam.z * cosX\n);if (abs(rotDir.z) < 0.01) {\nreturn vec2(-1.0);\n}float t = -rotCam.z / rotDir.z;if (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}vec2 intersection = vec2(rotCam.x + t * rotDir.x, rotCam.y + t * rotDir.y);\nintersection.x /= aspect;return intersection + pivot;\n}vec2 getAnimatedTranslate(float animationTime) {\nvec2 startPos = vec2(vec2(0.8336098820058997, 0.07355621107833493).x, 1.0 - vec2(0.8336098820058997, 0.07355621107833493).y);\nfloat span = mix(1.8, 3.4, 1.0000);\nfloat minX = 0.5 - span * 0.5;\nfloat progress = mod(startPos.x - minX + animationTime * 0.5, span);\nreturn vec2(minX + progress, startPos.y);\n}vec2 distortUV(vec2 uv) {\nfloat animationTime = uTime * 0.01;\nvec2 mouseOffset = mix(vec2(0.0), uMousePos - 0.5, 0.0000);\nvec2 pivot = vec2(0.701, 0.518) + mouseOffset;\nvec2 animatedTranslate = getAnimatedTranslate(animationTime);\nvec2 translatedUV = uv - ((animatedTranslate + (uMousePos - 0.5) * 0.0000 - 0.5) * 2.0);\nvec2 tiltMouseOffset = (vec2(uMousePos.x, 1.0 - uMousePos.y) - 0.5) * 0.0000 * PI;\nvec2 tiltedUV = apply3DRotation(\ntranslatedUV,\npivot,\nuResolution,\n(vec2(0.5, 0.5) - 0.5) * PI + tiltMouseOffset,\n0.6200\n);vec2 delta = tiltedUV - pivot;\nfloat aspect = uResolution.x / max(uResolution.y, 0.0001);\ndelta.x *= aspect;delta = rotate2D(0.0432 * TAU) * delta;\ndelta = mat2(1.0, (vec2(0.38, 0.5).y - 0.5) * 2.0, (vec2(0.38, 0.5).x - 0.5) * 2.0, 1.0) * delta;\ndelta /= exp2((vec2(0.77, 0.5) - 0.5) * 4.0) * exp2((0.5000 - 0.5) * 4.0);delta.x /= aspect;vec2 transformedUV = pivot + delta;transformedUV = fract(transformedUV);return transformedUV;\n}void main() {\nvec2 uv = distortUV(vTextureCoord);\nvec4 color = vec4(0.0);\nif (1 == 1 || (uv.x >= 0.0 && uv.x <= 1.0 && uv.y >= 0.0 && uv.y <= 1.0)) {\ncolor = texture(uTexture, uv);\n}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;}"], "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}"], "customPasses": [{"id": "custom-pass-1", "label": "Pass 1", "downSample": null, "includeBg": false, "needsPreviousFrame": null, "pingPong": false, "targetSize": null, "widthSegments": null, "heightSegments": null, "independentGeometry": null, "blend": null, "depthTest": false, "cullFace": null, "texturesOptions": null}], "trackMouse": 0, "speed": 0.5, "trackAxes": "xy", "data": {"depth": false, "uniforms": {}, "isBackground": false, "passes": []}, "id": "b79b24c6-2203-41a5-a436-9062a143ebf7", "publicId": "custom1"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "states": {"appear": [], "scroll": [], "hover": [], "mousemove": []}, "effects": ["2f249e6b-1fd5-4c2f-8127-20a2c2a3e974"], "anchorPoint": 8, "mask": 0, "maskInvert": 0, "maskDepth": 0, "maskDepthLayer": 0, "layerType": "image", "width": 35.39999999999998, "widthMode": 1, "height": 35.39999999999998, "heightMode": 2, "left": 0.66, "top": 0.317, "src": "/smeller/Lq7a3pS9Wn8EuGp0_nobg_1789674178746.webp?v=eb6acc79", "imageNaturalSize": {"type": "Vec2", "_x": 200, "_y": 200}, "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 sampler2D uSourceImage;uniform vec2 uArtboardResolution;\nuniform 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 apply3DRotation(vec2 uv, vec2 elementCenter, vec2 elementSize, float rotX, float rotY, float fov, vec2 mouseRotOffset) {\nfloat angleX = rotX * TAU + mouseRotOffset.y;\nfloat angleY = rotY * TAU + mouseRotOffset.x;\nif (abs(angleX) < 0.001 && abs(angleY) < 0.001) {\nreturn uv;\n}\nvec2 pos = uv - 0.5;\nfloat aspect = elementSize.x / elementSize.y;\npos.x *= aspect;\nfloat focalLength = mix(0.5, 4.0, fov);\nfloat cosX = cos(angleX);\nfloat sinX = sin(angleX);\nfloat cosY = cos(angleY);\nfloat sinY = sin(angleY);\nvec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));\nvec3 r1;\nr1.x = rayDir.x * cosY - rayDir.z * sinY;\nr1.y = rayDir.y;\nr1.z = rayDir.x * sinY + rayDir.z * cosY;\nvec3 r2;\nr2.x = r1.x;\nr2.y = r1.y * cosX + r1.z * sinX;\nr2.z = -r1.y * sinX + r1.z * cosX;\nvec3 camPos = vec3(0.0, 0.0, -focalLength);\nvec3 c1;\nc1.x = camPos.x * cosY - camPos.z * sinY;\nc1.y = camPos.y;\nc1.z = camPos.x * sinY + camPos.z * cosY;\nvec3 c2;\nc2.x = c1.x;\nc2.y = c1.y * cosX + c1.z * sinX;\nc2.z = -c1.y * sinX + c1.z * cosX;\nif (abs(r2.z) < 0.01) {\nreturn vec2(-1.0);\n}\nfloat t = -c2.z / r2.z;\nif (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}\nvec2 intersection = vec2(c2.x + t * r2.x, c2.y + t * r2.y);\nif (abs(intersection.x) > 2.0 || abs(intersection.y) > 2.0) {\nreturn vec2(-1.0);\n}\nintersection.x /= aspect;\nreturn intersection + 0.5;\n}vec2 getAnchorOffsets() {\nreturn vec2(0.5, 0.5);\n}vec4 sampleImage(vec2 canvasUV, vec2 mouseOffset, vec2 mouseRotOffset) {\nvec2 canvasPos = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);\nvec2 imageUV;float absWidth = 35.4000;\nfloat absHeight = 35.4000 * uArtboardResolution.y;\nabsWidth = absWidth;\nabsHeight = (1 != 2 && 2 == 2) ? absWidth / 1.0000 : absHeight;vec2 elementSizePx = vec2(absWidth, absHeight);\nvec2 elementPosPx = vec2(0.6600, 0.3170) * uArtboardResolution - getAnchorOffsets() * elementSizePx;vec2 centerPos = elementPosPx + (elementSizePx * 0.5);\nvec2 relPos = canvasPos - centerPos + mouseOffset;\nvec2 unrotatedRelPos = rotate2D(relPos, 0.0000 * -TAU);\nvec2 elementPos = unrotatedRelPos + (elementSizePx * 0.5);\nimageUV = elementPos / elementSizePx;\nimageUV = apply3DRotation(imageUV, vec2(0.5), vec2(200, 200), -0.1000, -0.0278, 1.0000, mouseRotOffset);\nvec2 flippedUV = vec2(imageUV.x, 1.0 - imageUV.y);\nvec4 color = textureLod(uSourceImage, flippedUV, 0.0);\nif (imageUV.x >= 0.0 && imageUV.x <= 1.0 && imageUV.y >= 0.0 && imageUV.y <= 1.0) {\nreturn color;\n} else {\nreturn vec4(0.0);\n}\n}vec4 applyImageAdjustments(vec4 color) {float luminance = dot(color.rgb, vec3(0.299, 0.587, 0.114));\ncolor.rgb = mix(vec3(luminance), color.rgb, 0.7600);color.rgb *= color.a;color.rgb = clamp(color.rgb, 0.0, 1.0);\nreturn color;\n}vec4 getSourceOutput(vec2 uv, vec2 mouseOffsetPx, vec2 mouseRotOffset) {\nvec4 color = sampleImage(uv, mouseOffsetPx, mouseRotOffset);\nreturn applyImageAdjustments(color);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 mouseOffsetUV = (uMousePos - 0.5) * 0.0000;\nvec2 mouseOffsetPx = mouseOffsetUV;\nvec2 mouseRotOffset = (uMousePos - 0.5) * 0.0000 * PI * 0.5;\nuv -= mouseOffsetUV;\nfragColor = getSourceOutput(uv, mouseOffsetPx, mouseRotOffset);\n}"], "data": {"uniforms": {"artboardResolution": {"name": "uArtboardResolution", "type": "2f", "value": {"type": "Vec2", "_x": 1440, "_y": 900}}, "aspectRatio": {"name": "uAspectRatio", "type": "1f", "value": 1}}, "elementOpacity": 0.31, "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;vec4 displacement(vec2 st, vec4 bg, vec4 color) {vec2 normal = vec2(bg.r * 2.0 - 1.0, bg.g * 2.0 - 1.0) * 0.1;\nvec2 displacedUV = st + normal * 0.5000;\ndisplacedUV = clamp(displacedUV, 0.0, 1.0);\nreturn texture(uTexture, displacedUV);\n}out vec4 fragColor;vec4 getNormalOutput(vec4 color, vec4 background) {\nreturn mix(background, color + background * (1.0 - color.a), 0.3100);\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);color = displacement(uv, background, color);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": "73e51530-c111-401b-9132-9d0c19c7b09f", "publicId": "image3"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "layerType": "effect", "type": "custom", "usesPingPong": false, "texture": false, "textures": [], "parentLayer": "8b40bc54-a279-4094-b0b0-d9099aed62b7", "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;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform float uTime;uniform sampler2D uMaskTexture;\nuniform int uIsMask;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nuniform float uParentTrackMouse;const float PI = 3.14159265359;\nconst float TAU = 6.28318530718;out vec4 fragColor;mat2 rotate2D(float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn mat2(c, s, -s, c);\n}vec2 apply3DRotation(vec2 uv, vec2 pivot, vec2 size, vec2 tilt, float perspective) {\nif (abs(tilt.x) < 0.001 && abs(tilt.y) < 0.001) {\nreturn uv;\n}vec2 pos = uv - pivot;\nfloat aspect = size.x / max(size.y, 0.0001);\npos.x *= aspect;float focalLength = mix(0.5, 4.0, perspective);float cosX = cos(tilt.y);\nfloat sinX = sin(tilt.y);\nfloat cosY = cos(tilt.x);\nfloat sinY = sin(tilt.x);vec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));vec3 rotYDir = vec3(\nrayDir.x * cosY - rayDir.z * sinY,\nrayDir.y,\nrayDir.x * sinY + rayDir.z * cosY\n);vec3 rotDir = vec3(\nrotYDir.x,\nrotYDir.y * cosX + rotYDir.z * sinX,\n-rotYDir.y * sinX + rotYDir.z * cosX\n);vec3 camPos = vec3(0.0, 0.0, -focalLength);vec3 rotYCam = vec3(\ncamPos.x * cosY - camPos.z * sinY,\ncamPos.y,\ncamPos.x * sinY + camPos.z * cosY\n);vec3 rotCam = vec3(\nrotYCam.x,\nrotYCam.y * cosX + rotYCam.z * sinX,\n-rotYCam.y * sinX + rotYCam.z * cosX\n);if (abs(rotDir.z) < 0.01) {\nreturn vec2(-1.0);\n}float t = -rotCam.z / rotDir.z;if (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}vec2 intersection = vec2(rotCam.x + t * rotDir.x, rotCam.y + t * rotDir.y);\nintersection.x /= aspect;return intersection + pivot;\n}vec2 getAnimatedTranslate(float animationTime) {\nvec2 startPos = vec2(vec2(0.8131686283673246, 0.5812780157393229).x, 1.0 - vec2(0.8131686283673246, 0.5812780157393229).y);\nfloat span = mix(1.8, 3.4, 1.0000);\nfloat minX = 0.5 - span * 0.5;\nfloat progress = mod(startPos.x - minX + animationTime * 0.5, span);\nreturn vec2(minX + progress, startPos.y);\n}vec2 distortUV(vec2 uv) {\nfloat animationTime = uTime * 0.01;\nvec2 mouseOffset = mix(vec2(0.0), uMousePos - 0.5, 0.0000);\nvec2 pivot = vec2(0.701, 0.518) + mouseOffset;\nvec2 animatedTranslate = getAnimatedTranslate(animationTime);\nvec2 translatedUV = uv - ((animatedTranslate + (uMousePos - 0.5) * 0.0000 - 0.5) * 2.0);\nvec2 tiltMouseOffset = (vec2(uMousePos.x, 1.0 - uMousePos.y) - 0.5) * 0.0000 * PI;\nvec2 tiltedUV = apply3DRotation(\ntranslatedUV,\npivot,\nuResolution,\n(vec2(0.5, 0.5) - 0.5) * PI + tiltMouseOffset,\n0.6200\n);vec2 delta = tiltedUV - pivot;\nfloat aspect = uResolution.x / max(uResolution.y, 0.0001);\ndelta.x *= aspect;delta = rotate2D(0.0432 * TAU) * delta;\ndelta = mat2(1.0, (vec2(0.38, 0.5).y - 0.5) * 2.0, (vec2(0.38, 0.5).x - 0.5) * 2.0, 1.0) * delta;\ndelta /= exp2((vec2(0.77, 0.5) - 0.5) * 4.0) * exp2((0.5000 - 0.5) * 4.0);delta.x /= aspect;vec2 transformedUV = pivot + delta;transformedUV = fract(transformedUV);return transformedUV;\n}void main() {\nvec2 uv = distortUV(vTextureCoord);\nvec4 color = vec4(0.0);\nif (1 == 1 || (uv.x >= 0.0 && uv.x <= 1.0 && uv.y >= 0.0 && uv.y <= 1.0)) {\ncolor = texture(uTexture, uv);\n}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;}"], "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}"], "customPasses": [{"id": "custom-pass-1", "label": "Pass 1", "downSample": null, "includeBg": false, "needsPreviousFrame": null, "pingPong": false, "targetSize": null, "widthSegments": null, "heightSegments": null, "independentGeometry": null, "blend": null, "depthTest": false, "cullFace": null, "texturesOptions": null}], "trackMouse": 0, "speed": 0.5, "trackAxes": "xy", "data": {"depth": false, "uniforms": {}, "isBackground": false, "passes": []}, "id": "abc14c3b-55de-4e21-ab6a-d0845165a3d5", "publicId": "custom2"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "states": {"appear": [], "scroll": [], "hover": [], "mousemove": []}, "effects": ["8b40bc54-a279-4094-b0b0-d9099aed62b7"], "anchorPoint": 8, "mask": 0, "maskInvert": 0, "maskDepth": 0, "maskDepthLayer": 0, "layerType": "image", "width": 35.39999999999998, "widthMode": 1, "height": 35.39999999999998, "heightMode": 2, "left": 0.6601769911504425, "top": 0.4381111111111111, "src": "/smeller/ai_nobg_1789678010551.webp?v=2f6cba37", "imageNaturalSize": {"type": "Vec2", "_x": 200, "_y": 200}, "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 sampler2D uSourceImage;uniform vec2 uArtboardResolution;\nuniform 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 apply3DRotation(vec2 uv, vec2 elementCenter, vec2 elementSize, float rotX, float rotY, float fov, vec2 mouseRotOffset) {\nfloat angleX = rotX * TAU + mouseRotOffset.y;\nfloat angleY = rotY * TAU + mouseRotOffset.x;\nif (abs(angleX) < 0.001 && abs(angleY) < 0.001) {\nreturn uv;\n}\nvec2 pos = uv - 0.5;\nfloat aspect = elementSize.x / elementSize.y;\npos.x *= aspect;\nfloat focalLength = mix(0.5, 4.0, fov);\nfloat cosX = cos(angleX);\nfloat sinX = sin(angleX);\nfloat cosY = cos(angleY);\nfloat sinY = sin(angleY);\nvec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));\nvec3 r1;\nr1.x = rayDir.x * cosY - rayDir.z * sinY;\nr1.y = rayDir.y;\nr1.z = rayDir.x * sinY + rayDir.z * cosY;\nvec3 r2;\nr2.x = r1.x;\nr2.y = r1.y * cosX + r1.z * sinX;\nr2.z = -r1.y * sinX + r1.z * cosX;\nvec3 camPos = vec3(0.0, 0.0, -focalLength);\nvec3 c1;\nc1.x = camPos.x * cosY - camPos.z * sinY;\nc1.y = camPos.y;\nc1.z = camPos.x * sinY + camPos.z * cosY;\nvec3 c2;\nc2.x = c1.x;\nc2.y = c1.y * cosX + c1.z * sinX;\nc2.z = -c1.y * sinX + c1.z * cosX;\nif (abs(r2.z) < 0.01) {\nreturn vec2(-1.0);\n}\nfloat t = -c2.z / r2.z;\nif (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}\nvec2 intersection = vec2(c2.x + t * r2.x, c2.y + t * r2.y);\nif (abs(intersection.x) > 2.0 || abs(intersection.y) > 2.0) {\nreturn vec2(-1.0);\n}\nintersection.x /= aspect;\nreturn intersection + 0.5;\n}vec2 getAnchorOffsets() {\nreturn vec2(0.5, 0.5);\n}vec4 sampleImage(vec2 canvasUV, vec2 mouseOffset, vec2 mouseRotOffset) {\nvec2 canvasPos = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);\nvec2 imageUV;float absWidth = 35.4000;\nfloat absHeight = 35.4000 * uArtboardResolution.y;\nabsWidth = absWidth;\nabsHeight = (1 != 2 && 2 == 2) ? absWidth / 1.0000 : absHeight;vec2 elementSizePx = vec2(absWidth, absHeight);\nvec2 elementPosPx = vec2(0.6602, 0.4381) * uArtboardResolution - getAnchorOffsets() * elementSizePx;vec2 centerPos = elementPosPx + (elementSizePx * 0.5);\nvec2 relPos = canvasPos - centerPos + mouseOffset;\nvec2 unrotatedRelPos = rotate2D(relPos, 0.0000 * -TAU);\nvec2 elementPos = unrotatedRelPos + (elementSizePx * 0.5);\nimageUV = elementPos / elementSizePx;\nimageUV = apply3DRotation(imageUV, vec2(0.5), vec2(200, 200), -0.1000, -0.0278, 1.0000, mouseRotOffset);\nvec2 flippedUV = vec2(imageUV.x, 1.0 - imageUV.y);\nvec4 color = textureLod(uSourceImage, flippedUV, 0.0);\nif (imageUV.x >= 0.0 && imageUV.x <= 1.0 && imageUV.y >= 0.0 && imageUV.y <= 1.0) {\nreturn color;\n} else {\nreturn vec4(0.0);\n}\n}vec4 applyImageAdjustments(vec4 color) {float luminance = dot(color.rgb, vec3(0.299, 0.587, 0.114));\ncolor.rgb = mix(vec3(luminance), color.rgb, 0.7600);color.rgb *= color.a;color.rgb = clamp(color.rgb, 0.0, 1.0);\nreturn color;\n}vec4 getSourceOutput(vec2 uv, vec2 mouseOffsetPx, vec2 mouseRotOffset) {\nvec4 color = sampleImage(uv, mouseOffsetPx, mouseRotOffset);\nreturn applyImageAdjustments(color);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 mouseOffsetUV = (uMousePos - 0.5) * 0.0000;\nvec2 mouseOffsetPx = mouseOffsetUV;\nvec2 mouseRotOffset = (uMousePos - 0.5) * 0.0000 * PI * 0.5;\nuv -= mouseOffsetUV;\nfragColor = getSourceOutput(uv, mouseOffsetPx, mouseRotOffset);\n}"], "data": {"uniforms": {"artboardResolution": {"name": "uArtboardResolution", "type": "2f", "value": {"type": "Vec2", "_x": 1440, "_y": 900}}, "aspectRatio": {"name": "uAspectRatio", "type": "1f", "value": 1}}, "elementOpacity": 0.31, "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;vec4 displacement(vec2 st, vec4 bg, vec4 color) {vec2 normal = vec2(bg.r * 2.0 - 1.0, bg.g * 2.0 - 1.0) * 0.1;\nvec2 displacedUV = st + normal * 0.5000;\ndisplacedUV = clamp(displacedUV, 0.0, 1.0);\nreturn texture(uTexture, displacedUV);\n}out vec4 fragColor;vec4 getNormalOutput(vec4 color, vec4 background) {\nreturn mix(background, color + background * (1.0 - color.a), 0.3100);\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);color = displacement(uv, background, color);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": "58efa04e-7e26-4ea4-b6be-7d54fcf2c493", "publicId": "image4"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "layerType": "effect", "type": "custom", "usesPingPong": false, "texture": false, "textures": [], "parentLayer": "f25ba22f-1961-4e5a-bc31-cfc377d871a6", "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;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform float uTime;uniform sampler2D uMaskTexture;\nuniform int uIsMask;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nuniform float uParentTrackMouse;const float PI = 3.14159265359;\nconst float TAU = 6.28318530718;out vec4 fragColor;mat2 rotate2D(float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn mat2(c, s, -s, c);\n}vec2 apply3DRotation(vec2 uv, vec2 pivot, vec2 size, vec2 tilt, float perspective) {\nif (abs(tilt.x) < 0.001 && abs(tilt.y) < 0.001) {\nreturn uv;\n}vec2 pos = uv - pivot;\nfloat aspect = size.x / max(size.y, 0.0001);\npos.x *= aspect;float focalLength = mix(0.5, 4.0, perspective);float cosX = cos(tilt.y);\nfloat sinX = sin(tilt.y);\nfloat cosY = cos(tilt.x);\nfloat sinY = sin(tilt.x);vec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));vec3 rotYDir = vec3(\nrayDir.x * cosY - rayDir.z * sinY,\nrayDir.y,\nrayDir.x * sinY + rayDir.z * cosY\n);vec3 rotDir = vec3(\nrotYDir.x,\nrotYDir.y * cosX + rotYDir.z * sinX,\n-rotYDir.y * sinX + rotYDir.z * cosX\n);vec3 camPos = vec3(0.0, 0.0, -focalLength);vec3 rotYCam = vec3(\ncamPos.x * cosY - camPos.z * sinY,\ncamPos.y,\ncamPos.x * sinY + camPos.z * cosY\n);vec3 rotCam = vec3(\nrotYCam.x,\nrotYCam.y * cosX + rotYCam.z * sinX,\n-rotYCam.y * sinX + rotYCam.z * cosX\n);if (abs(rotDir.z) < 0.01) {\nreturn vec2(-1.0);\n}float t = -rotCam.z / rotDir.z;if (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}vec2 intersection = vec2(rotCam.x + t * rotDir.x, rotCam.y + t * rotDir.y);\nintersection.x /= aspect;return intersection + pivot;\n}vec2 getAnimatedTranslate(float animationTime) {\nvec2 startPos = vec2(vec2(0.84962577391316, 0.48896614748584016).x, 1.0 - vec2(0.84962577391316, 0.48896614748584016).y);\nfloat span = mix(1.8, 3.4, 1.0000);\nfloat minX = 0.5 - span * 0.5;\nfloat progress = mod(startPos.x - minX + animationTime * 0.5, span);\nreturn vec2(minX + progress, startPos.y);\n}vec2 distortUV(vec2 uv) {\nfloat animationTime = uTime * 0.01;\nvec2 mouseOffset = mix(vec2(0.0), uMousePos - 0.5, 0.0000);\nvec2 pivot = vec2(0.701, 0.518) + mouseOffset;\nvec2 animatedTranslate = getAnimatedTranslate(animationTime);\nvec2 translatedUV = uv - ((animatedTranslate + (uMousePos - 0.5) * 0.0000 - 0.5) * 2.0);\nvec2 tiltMouseOffset = (vec2(uMousePos.x, 1.0 - uMousePos.y) - 0.5) * 0.0000 * PI;\nvec2 tiltedUV = apply3DRotation(\ntranslatedUV,\npivot,\nuResolution,\n(vec2(0.5, 0.5) - 0.5) * PI + tiltMouseOffset,\n0.6200\n);vec2 delta = tiltedUV - pivot;\nfloat aspect = uResolution.x / max(uResolution.y, 0.0001);\ndelta.x *= aspect;delta = rotate2D(0.0444 * TAU) * delta;\ndelta = mat2(1.0, (vec2(0.38, 0.5).y - 0.5) * 2.0, (vec2(0.38, 0.5).x - 0.5) * 2.0, 1.0) * delta;\ndelta /= exp2((vec2(0.77, 0.5) - 0.5) * 4.0) * exp2((0.5000 - 0.5) * 4.0);delta.x /= aspect;vec2 transformedUV = pivot + delta;transformedUV = fract(transformedUV);return transformedUV;\n}void main() {\nvec2 uv = distortUV(vTextureCoord);\nvec4 color = vec4(0.0);\nif (1 == 1 || (uv.x >= 0.0 && uv.x <= 1.0 && uv.y >= 0.0 && uv.y <= 1.0)) {\ncolor = texture(uTexture, uv);\n}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;}"], "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}"], "customPasses": [{"id": "custom-pass-1", "label": "Pass 1", "downSample": null, "includeBg": false, "needsPreviousFrame": null, "pingPong": false, "targetSize": null, "widthSegments": null, "heightSegments": null, "independentGeometry": null, "blend": null, "depthTest": false, "cullFace": null, "texturesOptions": null}], "trackMouse": 0, "speed": 0.5, "trackAxes": "xy", "data": {"depth": false, "uniforms": {}, "isBackground": false, "passes": []}, "id": "f91c53f4-fb9a-43cc-a39f-3795d6c18603", "publicId": "custom3"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "states": {"appear": [], "scroll": [], "hover": [], "mousemove": []}, "effects": ["f25ba22f-1961-4e5a-bc31-cfc377d871a6"], "anchorPoint": 8, "mask": 0, "maskInvert": 0, "maskDepth": 0, "maskDepthLayer": 0, "layerType": "image", "width": 35.39999999999998, "widthMode": 1, "height": 35.39999999999998, "heightMode": 2, "left": 0.6601769911504425, "top": 0.4381111111111111, "src": "/smeller/1amc.webp?v=c4f4c23f", "imageNaturalSize": {"type": "Vec2", "_x": 200, "_y": 200}, "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 sampler2D uSourceImage;uniform vec2 uArtboardResolution;\nuniform 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 apply3DRotation(vec2 uv, vec2 elementCenter, vec2 elementSize, float rotX, float rotY, float fov, vec2 mouseRotOffset) {\nfloat angleX = rotX * TAU + mouseRotOffset.y;\nfloat angleY = rotY * TAU + mouseRotOffset.x;\nif (abs(angleX) < 0.001 && abs(angleY) < 0.001) {\nreturn uv;\n}\nvec2 pos = uv - 0.5;\nfloat aspect = elementSize.x / elementSize.y;\npos.x *= aspect;\nfloat focalLength = mix(0.5, 4.0, fov);\nfloat cosX = cos(angleX);\nfloat sinX = sin(angleX);\nfloat cosY = cos(angleY);\nfloat sinY = sin(angleY);\nvec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));\nvec3 r1;\nr1.x = rayDir.x * cosY - rayDir.z * sinY;\nr1.y = rayDir.y;\nr1.z = rayDir.x * sinY + rayDir.z * cosY;\nvec3 r2;\nr2.x = r1.x;\nr2.y = r1.y * cosX + r1.z * sinX;\nr2.z = -r1.y * sinX + r1.z * cosX;\nvec3 camPos = vec3(0.0, 0.0, -focalLength);\nvec3 c1;\nc1.x = camPos.x * cosY - camPos.z * sinY;\nc1.y = camPos.y;\nc1.z = camPos.x * sinY + camPos.z * cosY;\nvec3 c2;\nc2.x = c1.x;\nc2.y = c1.y * cosX + c1.z * sinX;\nc2.z = -c1.y * sinX + c1.z * cosX;\nif (abs(r2.z) < 0.01) {\nreturn vec2(-1.0);\n}\nfloat t = -c2.z / r2.z;\nif (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}\nvec2 intersection = vec2(c2.x + t * r2.x, c2.y + t * r2.y);\nif (abs(intersection.x) > 2.0 || abs(intersection.y) > 2.0) {\nreturn vec2(-1.0);\n}\nintersection.x /= aspect;\nreturn intersection + 0.5;\n}vec2 getAnchorOffsets() {\nreturn vec2(0.5, 0.5);\n}vec4 sampleImage(vec2 canvasUV, vec2 mouseOffset, vec2 mouseRotOffset) {\nvec2 canvasPos = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);\nvec2 imageUV;float absWidth = 35.4000;\nfloat absHeight = 35.4000 * uArtboardResolution.y;\nabsWidth = absWidth;\nabsHeight = (1 != 2 && 2 == 2) ? absWidth / 1.0000 : absHeight;vec2 elementSizePx = vec2(absWidth, absHeight);\nvec2 elementPosPx = vec2(0.6602, 0.4381) * uArtboardResolution - getAnchorOffsets() * elementSizePx;vec2 centerPos = elementPosPx + (elementSizePx * 0.5);\nvec2 relPos = canvasPos - centerPos + mouseOffset;\nvec2 unrotatedRelPos = rotate2D(relPos, 0.0000 * -TAU);\nvec2 elementPos = unrotatedRelPos + (elementSizePx * 0.5);\nimageUV = elementPos / elementSizePx;\nimageUV = apply3DRotation(imageUV, vec2(0.5), vec2(200, 200), -0.1000, -0.0278, 1.0000, mouseRotOffset);\nvec2 flippedUV = vec2(imageUV.x, 1.0 - imageUV.y);\nvec4 color = textureLod(uSourceImage, flippedUV, 0.0);\nif (imageUV.x >= 0.0 && imageUV.x <= 1.0 && imageUV.y >= 0.0 && imageUV.y <= 1.0) {\nreturn color;\n} else {\nreturn vec4(0.0);\n}\n}vec4 applyImageAdjustments(vec4 color) {float luminance = dot(color.rgb, vec3(0.299, 0.587, 0.114));\ncolor.rgb = mix(vec3(luminance), color.rgb, 0.7600);color.rgb *= color.a;color.rgb = clamp(color.rgb, 0.0, 1.0);\nreturn color;\n}vec4 getSourceOutput(vec2 uv, vec2 mouseOffsetPx, vec2 mouseRotOffset) {\nvec4 color = sampleImage(uv, mouseOffsetPx, mouseRotOffset);\nreturn applyImageAdjustments(color);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 mouseOffsetUV = (uMousePos - 0.5) * 0.0000;\nvec2 mouseOffsetPx = mouseOffsetUV;\nvec2 mouseRotOffset = (uMousePos - 0.5) * 0.0000 * PI * 0.5;\nuv -= mouseOffsetUV;\nfragColor = getSourceOutput(uv, mouseOffsetPx, mouseRotOffset);\n}"], "data": {"uniforms": {"artboardResolution": {"name": "uArtboardResolution", "type": "2f", "value": {"type": "Vec2", "_x": 1440, "_y": 900}}, "aspectRatio": {"name": "uAspectRatio", "type": "1f", "value": 1}}, "elementOpacity": 0.31, "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;vec4 displacement(vec2 st, vec4 bg, vec4 color) {vec2 normal = vec2(bg.r * 2.0 - 1.0, bg.g * 2.0 - 1.0) * 0.1;\nvec2 displacedUV = st + normal * 0.5000;\ndisplacedUV = clamp(displacedUV, 0.0, 1.0);\nreturn texture(uTexture, displacedUV);\n}out vec4 fragColor;vec4 getNormalOutput(vec4 color, vec4 background) {\nreturn mix(background, color + background * (1.0 - color.a), 0.3100);\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);color = displacement(uv, background, color);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": "37e973be-3359-4f5e-b332-5cb5788e7bd3", "publicId": "image5"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "layerType": "effect", "type": "custom", "usesPingPong": false, "texture": false, "textures": [], "parentLayer": "0d06afbc-2961-4ec3-a779-7fb3b079eeb4", "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;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform float uTime;uniform sampler2D uMaskTexture;\nuniform int uIsMask;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nuniform float uParentTrackMouse;const float PI = 3.14159265359;\nconst float TAU = 6.28318530718;out vec4 fragColor;mat2 rotate2D(float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn mat2(c, s, -s, c);\n}vec2 apply3DRotation(vec2 uv, vec2 pivot, vec2 size, vec2 tilt, float perspective) {\nif (abs(tilt.x) < 0.001 && abs(tilt.y) < 0.001) {\nreturn uv;\n}vec2 pos = uv - pivot;\nfloat aspect = size.x / max(size.y, 0.0001);\npos.x *= aspect;float focalLength = mix(0.5, 4.0, perspective);float cosX = cos(tilt.y);\nfloat sinX = sin(tilt.y);\nfloat cosY = cos(tilt.x);\nfloat sinY = sin(tilt.x);vec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));vec3 rotYDir = vec3(\nrayDir.x * cosY - rayDir.z * sinY,\nrayDir.y,\nrayDir.x * sinY + rayDir.z * cosY\n);vec3 rotDir = vec3(\nrotYDir.x,\nrotYDir.y * cosX + rotYDir.z * sinX,\n-rotYDir.y * sinX + rotYDir.z * cosX\n);vec3 camPos = vec3(0.0, 0.0, -focalLength);vec3 rotYCam = vec3(\ncamPos.x * cosY - camPos.z * sinY,\ncamPos.y,\ncamPos.x * sinY + camPos.z * cosY\n);vec3 rotCam = vec3(\nrotYCam.x,\nrotYCam.y * cosX + rotYCam.z * sinX,\n-rotYCam.y * sinX + rotYCam.z * cosX\n);if (abs(rotDir.z) < 0.01) {\nreturn vec2(-1.0);\n}float t = -rotCam.z / rotDir.z;if (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}vec2 intersection = vec2(rotCam.x + t * rotDir.x, rotCam.y + t * rotDir.y);\nintersection.x /= aspect;return intersection + pivot;\n}vec2 getAnimatedTranslate(float animationTime) {\nvec2 startPos = vec2(vec2(0.8336098820058997, 0.07355621107833493).x, 1.0 - vec2(0.8336098820058997, 0.07355621107833493).y);\nfloat span = mix(1.8, 3.4, 1.0000);\nfloat minX = 0.5 - span * 0.5;\nfloat progress = mod(startPos.x - minX + animationTime * 0.5, span);\nreturn vec2(minX + progress, startPos.y);\n}vec2 distortUV(vec2 uv) {\nfloat animationTime = uTime * 0.01;\nvec2 mouseOffset = mix(vec2(0.0), uMousePos - 0.5, 0.0000);\nvec2 pivot = vec2(0.701, 0.518) + mouseOffset;\nvec2 animatedTranslate = getAnimatedTranslate(animationTime);\nvec2 translatedUV = uv - ((animatedTranslate + (uMousePos - 0.5) * 0.0000 - 0.5) * 2.0);\nvec2 tiltMouseOffset = (vec2(uMousePos.x, 1.0 - uMousePos.y) - 0.5) * 0.0000 * PI;\nvec2 tiltedUV = apply3DRotation(\ntranslatedUV,\npivot,\nuResolution,\n(vec2(0.5, 0.5) - 0.5) * PI + tiltMouseOffset,\n0.6200\n);vec2 delta = tiltedUV - pivot;\nfloat aspect = uResolution.x / max(uResolution.y, 0.0001);\ndelta.x *= aspect;delta = rotate2D(0.0432 * TAU) * delta;\ndelta = mat2(1.0, (vec2(0.38, 0.5).y - 0.5) * 2.0, (vec2(0.38, 0.5).x - 0.5) * 2.0, 1.0) * delta;\ndelta /= exp2((vec2(0.77, 0.5) - 0.5) * 4.0) * exp2((0.5000 - 0.5) * 4.0);delta.x /= aspect;vec2 transformedUV = pivot + delta;transformedUV = fract(transformedUV);return transformedUV;\n}void main() {\nvec2 uv = distortUV(vTextureCoord);\nvec4 color = vec4(0.0);\nif (1 == 1 || (uv.x >= 0.0 && uv.x <= 1.0 && uv.y >= 0.0 && uv.y <= 1.0)) {\ncolor = texture(uTexture, uv);\n}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;}"], "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}"], "customPasses": [{"id": "custom-pass-1", "label": "Pass 1", "downSample": null, "includeBg": false, "needsPreviousFrame": null, "pingPong": false, "targetSize": null, "widthSegments": null, "heightSegments": null, "independentGeometry": null, "blend": null, "depthTest": false, "cullFace": null, "texturesOptions": null}], "trackMouse": 0, "speed": 0.5, "trackAxes": "xy", "data": {"depth": false, "uniforms": {}, "isBackground": false, "passes": []}, "id": "ec0937f6-a8c9-43e9-ba49-09bf58ec081e", "publicId": "custom4"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "states": {"appear": [], "scroll": [], "hover": [], "mousemove": []}, "effects": ["0d06afbc-2961-4ec3-a779-7fb3b079eeb4"], "anchorPoint": 8, "mask": 0, "maskInvert": 0, "maskDepth": 0, "maskDepthLayer": 0, "layerType": "image", "width": 35.39999999999998, "widthMode": 1, "height": 35.39999999999998, "heightMode": 2, "left": 0.66, "top": 0.317, "src": "/smeller/1index.webp?v=d082e659", "imageNaturalSize": {"type": "Vec2", "_x": 200, "_y": 200}, "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 sampler2D uSourceImage;uniform vec2 uArtboardResolution;\nuniform 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 apply3DRotation(vec2 uv, vec2 elementCenter, vec2 elementSize, float rotX, float rotY, float fov, vec2 mouseRotOffset) {\nfloat angleX = rotX * TAU + mouseRotOffset.y;\nfloat angleY = rotY * TAU + mouseRotOffset.x;\nif (abs(angleX) < 0.001 && abs(angleY) < 0.001) {\nreturn uv;\n}\nvec2 pos = uv - 0.5;\nfloat aspect = elementSize.x / elementSize.y;\npos.x *= aspect;\nfloat focalLength = mix(0.5, 4.0, fov);\nfloat cosX = cos(angleX);\nfloat sinX = sin(angleX);\nfloat cosY = cos(angleY);\nfloat sinY = sin(angleY);\nvec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));\nvec3 r1;\nr1.x = rayDir.x * cosY - rayDir.z * sinY;\nr1.y = rayDir.y;\nr1.z = rayDir.x * sinY + rayDir.z * cosY;\nvec3 r2;\nr2.x = r1.x;\nr2.y = r1.y * cosX + r1.z * sinX;\nr2.z = -r1.y * sinX + r1.z * cosX;\nvec3 camPos = vec3(0.0, 0.0, -focalLength);\nvec3 c1;\nc1.x = camPos.x * cosY - camPos.z * sinY;\nc1.y = camPos.y;\nc1.z = camPos.x * sinY + camPos.z * cosY;\nvec3 c2;\nc2.x = c1.x;\nc2.y = c1.y * cosX + c1.z * sinX;\nc2.z = -c1.y * sinX + c1.z * cosX;\nif (abs(r2.z) < 0.01) {\nreturn vec2(-1.0);\n}\nfloat t = -c2.z / r2.z;\nif (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}\nvec2 intersection = vec2(c2.x + t * r2.x, c2.y + t * r2.y);\nif (abs(intersection.x) > 2.0 || abs(intersection.y) > 2.0) {\nreturn vec2(-1.0);\n}\nintersection.x /= aspect;\nreturn intersection + 0.5;\n}vec2 getAnchorOffsets() {\nreturn vec2(0.5, 0.5);\n}vec4 sampleImage(vec2 canvasUV, vec2 mouseOffset, vec2 mouseRotOffset) {\nvec2 canvasPos = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);\nvec2 imageUV;float absWidth = 35.4000;\nfloat absHeight = 35.4000 * uArtboardResolution.y;\nabsWidth = absWidth;\nabsHeight = (1 != 2 && 2 == 2) ? absWidth / 1.0000 : absHeight;vec2 elementSizePx = vec2(absWidth, absHeight);\nvec2 elementPosPx = vec2(0.6600, 0.3170) * uArtboardResolution - getAnchorOffsets() * elementSizePx;vec2 centerPos = elementPosPx + (elementSizePx * 0.5);\nvec2 relPos = canvasPos - centerPos + mouseOffset;\nvec2 unrotatedRelPos = rotate2D(relPos, 0.0000 * -TAU);\nvec2 elementPos = unrotatedRelPos + (elementSizePx * 0.5);\nimageUV = elementPos / elementSizePx;\nimageUV = apply3DRotation(imageUV, vec2(0.5), vec2(200, 200), -0.1000, -0.0278, 1.0000, mouseRotOffset);\nvec2 flippedUV = vec2(imageUV.x, 1.0 - imageUV.y);\nvec4 color = textureLod(uSourceImage, flippedUV, 0.0);\nif (imageUV.x >= 0.0 && imageUV.x <= 1.0 && imageUV.y >= 0.0 && imageUV.y <= 1.0) {\nreturn color;\n} else {\nreturn vec4(0.0);\n}\n}vec4 applyImageAdjustments(vec4 color) {float luminance = dot(color.rgb, vec3(0.299, 0.587, 0.114));\ncolor.rgb = mix(vec3(luminance), color.rgb, 0.7600);color.rgb *= color.a;color.rgb = clamp(color.rgb, 0.0, 1.0);\nreturn color;\n}vec4 getSourceOutput(vec2 uv, vec2 mouseOffsetPx, vec2 mouseRotOffset) {\nvec4 color = sampleImage(uv, mouseOffsetPx, mouseRotOffset);\nreturn applyImageAdjustments(color);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 mouseOffsetUV = (uMousePos - 0.5) * 0.0000;\nvec2 mouseOffsetPx = mouseOffsetUV;\nvec2 mouseRotOffset = (uMousePos - 0.5) * 0.0000 * PI * 0.5;\nuv -= mouseOffsetUV;\nfragColor = getSourceOutput(uv, mouseOffsetPx, mouseRotOffset);\n}"], "data": {"uniforms": {"artboardResolution": {"name": "uArtboardResolution", "type": "2f", "value": {"type": "Vec2", "_x": 1440, "_y": 900}}, "aspectRatio": {"name": "uAspectRatio", "type": "1f", "value": 1}}, "elementOpacity": 0.31, "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;vec4 displacement(vec2 st, vec4 bg, vec4 color) {vec2 normal = vec2(bg.r * 2.0 - 1.0, bg.g * 2.0 - 1.0) * 0.1;\nvec2 displacedUV = st + normal * 0.5000;\ndisplacedUV = clamp(displacedUV, 0.0, 1.0);\nreturn texture(uTexture, displacedUV);\n}out vec4 fragColor;vec4 getNormalOutput(vec4 color, vec4 background) {\nreturn mix(background, color + background * (1.0 - color.a), 0.3100);\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);color = displacement(uv, background, color);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": "2c78a53a-234b-4cc3-998b-c38deb66d8b2", "publicId": "image6"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "layerType": "effect", "type": "custom", "usesPingPong": false, "texture": false, "textures": [], "parentLayer": "de991d6b-087a-4e23-848e-af99b08f76e8", "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;in vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform float uTime;uniform sampler2D uMaskTexture;\nuniform int uIsMask;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nuniform float uParentTrackMouse;const float PI = 3.14159265359;\nconst float TAU = 6.28318530718;out vec4 fragColor;mat2 rotate2D(float angle) {\nfloat s = sin(angle);\nfloat c = cos(angle);\nreturn mat2(c, s, -s, c);\n}vec2 apply3DRotation(vec2 uv, vec2 pivot, vec2 size, vec2 tilt, float perspective) {\nif (abs(tilt.x) < 0.001 && abs(tilt.y) < 0.001) {\nreturn uv;\n}vec2 pos = uv - pivot;\nfloat aspect = size.x / max(size.y, 0.0001);\npos.x *= aspect;float focalLength = mix(0.5, 4.0, perspective);float cosX = cos(tilt.y);\nfloat sinX = sin(tilt.y);\nfloat cosY = cos(tilt.x);\nfloat sinY = sin(tilt.x);vec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));vec3 rotYDir = vec3(\nrayDir.x * cosY - rayDir.z * sinY,\nrayDir.y,\nrayDir.x * sinY + rayDir.z * cosY\n);vec3 rotDir = vec3(\nrotYDir.x,\nrotYDir.y * cosX + rotYDir.z * sinX,\n-rotYDir.y * sinX + rotYDir.z * cosX\n);vec3 camPos = vec3(0.0, 0.0, -focalLength);vec3 rotYCam = vec3(\ncamPos.x * cosY - camPos.z * sinY,\ncamPos.y,\ncamPos.x * sinY + camPos.z * cosY\n);vec3 rotCam = vec3(\nrotYCam.x,\nrotYCam.y * cosX + rotYCam.z * sinX,\n-rotYCam.y * sinX + rotYCam.z * cosX\n);if (abs(rotDir.z) < 0.01) {\nreturn vec2(-1.0);\n}float t = -rotCam.z / rotDir.z;if (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}vec2 intersection = vec2(rotCam.x + t * rotDir.x, rotCam.y + t * rotDir.y);\nintersection.x /= aspect;return intersection + pivot;\n}vec2 getAnimatedTranslate(float animationTime) {\nvec2 startPos = vec2(vec2(0.8158234956239618, 0.5019859803410929).x, 1.0 - vec2(0.8158234956239618, 0.5019859803410929).y);\nfloat span = mix(1.8, 3.4, 1.0000);\nfloat minX = 0.5 - span * 0.5;\nfloat progress = mod(startPos.x - minX + animationTime * 0.5, span);\nreturn vec2(minX + progress, startPos.y);\n}vec2 distortUV(vec2 uv) {\nfloat animationTime = uTime * 0.01;\nvec2 mouseOffset = mix(vec2(0.0), uMousePos - 0.5, 0.0000);\nvec2 pivot = vec2(0.701, 0.518) + mouseOffset;\nvec2 animatedTranslate = getAnimatedTranslate(animationTime);\nvec2 translatedUV = uv - ((animatedTranslate + (uMousePos - 0.5) * 0.0000 - 0.5) * 2.0);\nvec2 tiltMouseOffset = (vec2(uMousePos.x, 1.0 - uMousePos.y) - 0.5) * 0.0000 * PI;\nvec2 tiltedUV = apply3DRotation(\ntranslatedUV,\npivot,\nuResolution,\n(vec2(0.5, 0.5) - 0.5) * PI + tiltMouseOffset,\n0.6200\n);vec2 delta = tiltedUV - pivot;\nfloat aspect = uResolution.x / max(uResolution.y, 0.0001);\ndelta.x *= aspect;delta = rotate2D(0.0432 * TAU) * delta;\ndelta = mat2(1.0, (vec2(0.38, 0.5).y - 0.5) * 2.0, (vec2(0.38, 0.5).x - 0.5) * 2.0, 1.0) * delta;\ndelta /= exp2((vec2(0.77, 0.5) - 0.5) * 4.0) * exp2((0.5000 - 0.5) * 4.0);delta.x /= aspect;vec2 transformedUV = pivot + delta;transformedUV = fract(transformedUV);return transformedUV;\n}void main() {\nvec2 uv = distortUV(vTextureCoord);\nvec4 color = vec4(0.0);\nif (1 == 1 || (uv.x >= 0.0 && uv.x <= 1.0 && uv.y >= 0.0 && uv.y <= 1.0)) {\ncolor = texture(uTexture, uv);\n}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;}"], "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}"], "customPasses": [{"id": "custom-pass-1", "label": "Pass 1", "downSample": null, "includeBg": false, "needsPreviousFrame": null, "pingPong": false, "targetSize": null, "widthSegments": null, "heightSegments": null, "independentGeometry": null, "blend": null, "depthTest": false, "cullFace": null, "texturesOptions": null}], "trackMouse": 0, "speed": 0.5, "trackAxes": "xy", "data": {"depth": false, "uniforms": {}, "isBackground": false, "passes": []}, "id": "481a2e31-4005-4244-95c0-993ba20d9c89", "publicId": "custom5"}, {"breakpoints": [], "visible": true, "aspectRatio": 1, "userDownsample": 1, "states": {"appear": [], "scroll": [], "hover": [], "mousemove": []}, "effects": ["de991d6b-087a-4e23-848e-af99b08f76e8"], "anchorPoint": 8, "mask": 0, "maskInvert": 0, "maskDepth": 0, "maskDepthLayer": 0, "layerType": "image", "width": 35.39999999999998, "widthMode": 1, "height": 35.39999999999998, "heightMode": 2, "left": 0.6601769911504425, "top": 0.4381111111111111, "src": "/smeller/1pepe.webp?v=b23b4558", "imageNaturalSize": {"type": "Vec2", "_x": 200, "_y": 200}, "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 sampler2D uSourceImage;uniform vec2 uArtboardResolution;\nuniform 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 apply3DRotation(vec2 uv, vec2 elementCenter, vec2 elementSize, float rotX, float rotY, float fov, vec2 mouseRotOffset) {\nfloat angleX = rotX * TAU + mouseRotOffset.y;\nfloat angleY = rotY * TAU + mouseRotOffset.x;\nif (abs(angleX) < 0.001 && abs(angleY) < 0.001) {\nreturn uv;\n}\nvec2 pos = uv - 0.5;\nfloat aspect = elementSize.x / elementSize.y;\npos.x *= aspect;\nfloat focalLength = mix(0.5, 4.0, fov);\nfloat cosX = cos(angleX);\nfloat sinX = sin(angleX);\nfloat cosY = cos(angleY);\nfloat sinY = sin(angleY);\nvec3 rayDir = normalize(vec3(pos.x, pos.y, focalLength));\nvec3 r1;\nr1.x = rayDir.x * cosY - rayDir.z * sinY;\nr1.y = rayDir.y;\nr1.z = rayDir.x * sinY + rayDir.z * cosY;\nvec3 r2;\nr2.x = r1.x;\nr2.y = r1.y * cosX + r1.z * sinX;\nr2.z = -r1.y * sinX + r1.z * cosX;\nvec3 camPos = vec3(0.0, 0.0, -focalLength);\nvec3 c1;\nc1.x = camPos.x * cosY - camPos.z * sinY;\nc1.y = camPos.y;\nc1.z = camPos.x * sinY + camPos.z * cosY;\nvec3 c2;\nc2.x = c1.x;\nc2.y = c1.y * cosX + c1.z * sinX;\nc2.z = -c1.y * sinX + c1.z * cosX;\nif (abs(r2.z) < 0.01) {\nreturn vec2(-1.0);\n}\nfloat t = -c2.z / r2.z;\nif (t < 0.0 || t > 50.0) {\nreturn vec2(-1.0);\n}\nvec2 intersection = vec2(c2.x + t * r2.x, c2.y + t * r2.y);\nif (abs(intersection.x) > 2.0 || abs(intersection.y) > 2.0) {\nreturn vec2(-1.0);\n}\nintersection.x /= aspect;\nreturn intersection + 0.5;\n}vec2 getAnchorOffsets() {\nreturn vec2(0.5, 0.5);\n}vec4 sampleImage(vec2 canvasUV, vec2 mouseOffset, vec2 mouseRotOffset) {\nvec2 canvasPos = vec2(canvasUV.x * uArtboardResolution.x, (1.0 - canvasUV.y) * uArtboardResolution.y);\nvec2 imageUV;float absWidth = 35.4000;\nfloat absHeight = 35.4000 * uArtboardResolution.y;\nabsWidth = absWidth;\nabsHeight = (1 != 2 && 2 == 2) ? absWidth / 1.0000 : absHeight;vec2 elementSizePx = vec2(absWidth, absHeight);\nvec2 elementPosPx = vec2(0.6602, 0.4381) * uArtboardResolution - getAnchorOffsets() * elementSizePx;vec2 centerPos = elementPosPx + (elementSizePx * 0.5);\nvec2 relPos = canvasPos - centerPos + mouseOffset;\nvec2 unrotatedRelPos = rotate2D(relPos, 0.0000 * -TAU);\nvec2 elementPos = unrotatedRelPos + (elementSizePx * 0.5);\nimageUV = elementPos / elementSizePx;\nimageUV = apply3DRotation(imageUV, vec2(0.5), vec2(200, 200), -0.1000, -0.0278, 1.0000, mouseRotOffset);\nvec2 flippedUV = vec2(imageUV.x, 1.0 - imageUV.y);\nvec4 color = textureLod(uSourceImage, flippedUV, 0.0);\nif (imageUV.x >= 0.0 && imageUV.x <= 1.0 && imageUV.y >= 0.0 && imageUV.y <= 1.0) {\nreturn color;\n} else {\nreturn vec4(0.0);\n}\n}vec4 applyImageAdjustments(vec4 color) {float luminance = dot(color.rgb, vec3(0.299, 0.587, 0.114));\ncolor.rgb = mix(vec3(luminance), color.rgb, 0.7600);color.rgb *= color.a;color.rgb = clamp(color.rgb, 0.0, 1.0);\nreturn color;\n}vec4 getSourceOutput(vec2 uv, vec2 mouseOffsetPx, vec2 mouseRotOffset) {\nvec4 color = sampleImage(uv, mouseOffsetPx, mouseRotOffset);\nreturn applyImageAdjustments(color);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 mouseOffsetUV = (uMousePos - 0.5) * 0.0000;\nvec2 mouseOffsetPx = mouseOffsetUV;\nvec2 mouseRotOffset = (uMousePos - 0.5) * 0.0000 * PI * 0.5;\nuv -= mouseOffsetUV;\nfragColor = getSourceOutput(uv, mouseOffsetPx, mouseRotOffset);\n}"], "data": {"uniforms": {"artboardResolution": {"name": "uArtboardResolution", "type": "2f", "value": {"type": "Vec2", "_x": 1440, "_y": 900}}, "aspectRatio": {"name": "uAspectRatio", "type": "1f", "value": 1}}, "elementOpacity": 0.31, "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;vec4 displacement(vec2 st, vec4 bg, vec4 color) {vec2 normal = vec2(bg.r * 2.0 - 1.0, bg.g * 2.0 - 1.0) * 0.1;\nvec2 displacedUV = st + normal * 0.5000;\ndisplacedUV = clamp(displacedUV, 0.0, 1.0);\nreturn texture(uTexture, displacedUV);\n}out vec4 fragColor;vec4 getNormalOutput(vec4 color, vec4 background) {\nreturn mix(background, color + background * (1.0 - color.a), 0.3100);\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);color = displacement(uv, background, color);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": "9689409f-bc1d-4b1d-9b02-8042f303521f", "publicId": "image7"}], "options": {"name": "AI Automation Hero Section (Remix)", "fps": 60, "dpi": 1.5, "scale": 1, "includeLogo": false, "isProduction": false, "flatten": false}, "version": "2.2.14", "id": "2eViD04jwKW6BbFr31d4"}