Skip to content

chuspeeism/dashi-ppt-skill / skills/dashi-ppt

dashi-ppt

Flagged

制作 PPT、演示文稿、幻灯片、汇报材料时使用。Dashi PPT 基于预置视觉主题组合页面,生成可离线打开、可在浏览器编辑的 HTML 演示,支持导出 PPTX / PDF 文件。

FileKindSize
.gitignoreother173 B
README.mdmarkdown3.9 KB
SKILL.mdskill md25.4 KB
agents/openai.yamlconfig292 B
assets/skill/dashi-ppt-favicon.pngbinary2.0 KB
assets/skill/dashi-ppt-small.pngbinary895 B
assets/skill/dashi-ppt.pngbinary12.6 KB
assets/skill/theme-style-grid.pngbinary2.1 MB
project/.npmrcother40 B
project/assets/skill/dashi-ppt-favicon.pngbinary2.0 KB
project/assets/social-icons/bilibili.svgother7.9 KB
project/assets/social-icons/douyin.svgother4.7 KB
project/assets/social-icons/github.svgother1.3 KB
project/assets/social-icons/redbook.svgother3.5 KB
project/assets/template-swiss.htmlother465.5 KB
project/assets/ui-icons/sidebar.svgother1.3 KB
project/assets/unicorn/automations_remix_scene.jsonconfig42.9 KB
project/assets/unicorn/goey_balls_remix_scene.jsonconfig14.2 KB
project/assets/unicorn/media/blue_noise_med.pngbinary206.4 KB
project/assets/unicorn/media/font_atlas.pngbinary64.6 KB
project/assets/unicorn/moving_into_remix_scene.jsonconfig67.8 KB
project/assets/unicorn/tech_background_remix_scene.jsonconfig52.2 KB
project/distribution-source.jsonconfig517 B
project/i18n/zh-en.jsonconfig574.5 KB
project/layout-manifest.jsonconfig3.4 MB
project/npmrc.templateother40 B
project/package-lock.jsonmanifest21.8 KB
project/package.jsonmanifest1.2 KB
project/packages/html-deck-to-pptx/LICENSEother1.6 KB
project/packages/html-deck-to-pptx/README.mdmarkdown2.2 KB
project/packages/html-deck-to-pptx/index.mjsscript719 B
project/packages/html-deck-to-pptx/package.jsonmanifest840 B
project/packages/html-deck-to-pptx/src/editable.mjsscript143 B
project/packages/html-deck-to-pptx/src/screenshot.mjsscript147 B
project/scripts/chrome-path.mjsscript6.1 KB
project/scripts/command-paths.mjsscript334 B
project/scripts/ensure-registry.mjsscript2.1 KB
project/scripts/export-pptx.mjsscript6.4 KB
project/scripts/goal-scaffold.mjsscript31.3 KB
project/scripts/inspect-layout.mjsscript2.1 KB
project/scripts/layout-query.mjsscript3.4 KB
project/scripts/media-formats.mjsscript1.3 KB
project/scripts/openssl-path.mjsscript2.2 KB
project/scripts/persist-deck-state.mjsscript6.7 KB
project/scripts/preview-export-auth.mjsscript1.0 KB
project/scripts/preview-freshness.mjsscript6.2 KB
project/scripts/preview-path.mjsscript569 B
project/scripts/preview/ensure-tmpdir.mjsscript3.4 KB
project/scripts/preview/export-routes.mjsscript24.2 KB
project/scripts/preview/launch-export-browser.mjsscript2.5 KB
project/scripts/preview/mime.mjsscript671 B
project/scripts/preview/network.mjsscript799 B
project/scripts/preview/static-serve.mjsscript1.2 KB
project/scripts/preview/tls.mjsscript2.7 KB
project/scripts/render-goal-deck.jsxother2.5 KB
project/scripts/scrub-local-paths.mjsscript898 B
project/scripts/serve-preview-https.mjsscript10.7 KB
project/scripts/skill-workflow-utils.mjsscript1.4 KB
project/scripts/stage-media.mjsexecutablescript14.7 KB
project/scripts/start-preview-server.mjsscript16.1 KB
project/scripts/validate-goal-copy.mjsscript25.4 KB
project/scripts/validate-goal-spec.mjsscript80.7 KB
project/scripts/validate-swiss-deck.mjsscript34.1 KB
project/scripts/workflow-telemetry.mjsscript6.1 KB
project/scripts/workflow/copy-contract.mjsscript19.2 KB
project/scripts/workflow/inspect-fillplan.mjsscript70.6 KB
project/scripts/workflow/layout-allocation.mjsscript8.5 KB
project/scripts/workflow/layout-query.mjsscript64.4 KB
project/scripts/workflow/media-slots.mjsscript15.8 KB
project/scripts/workflow/theme-registry.mjsscript16.1 KB
project/scripts/write-safe-props.mjsscript17.7 KB
project/src/accepted-themes.mjsscript570 B
project/src/components/bespoke/BespokeSlide.jsxother32.0 KB
project/src/components/bespoke/theme-profiles.mjsscript11.5 KB
project/src/components/index.jsxother71 B
project/src/components/shell/SlideShell.jsxother1.5 KB
project/src/components/shell/index.jsxother47 B
project/src/components/themes/canonical-metadata.mjsscript4.6 KB
project/src/components/themes/chart-safety.mjsscript1.9 KB
project/src/components/themes/client-runtime.jsxother57.9 KB
project/src/components/themes/decorative-overrides.mjsscript859 B
project/src/components/themes/generated-metadata.jsscript4.4 MB
project/src/components/themes/index.jsxother2.8 KB
project/src/components/themes/runtime-build.mjsscript7.3 KB
project/src/components/themes/runtime-helpers.jsxother6.2 KB
project/src/components/themes/theme-registry-codegen.mjsscript7.2 KB
project/src/components/themes/theme01/metadata.jsscript363.9 KB
project/src/components/themes/theme01/source/slides/theme.jsscript5.6 KB
project/src/components/themes/theme02/metadata.jsscript384.6 KB
project/src/components/themes/theme02/overrides.jsscript114 B
project/src/components/themes/theme02/source/src/gxnTheme.jsscript19.6 KB
project/src/components/themes/theme03/metadata.jsscript512.5 KB
project/src/components/themes/theme03/overrides.jsscript1.2 KB
project/src/components/themes/theme03/source/assets/3d/01.pngbinary635.1 KB
project/src/components/themes/theme03/source/assets/3d/02.pngbinary865.2 KB
project/src/components/themes/theme03/source/assets/3d/03.pngbinary921.8 KB
project/src/components/themes/theme03/source/assets/3d/04.pngbinary1.1 MB
project/src/components/themes/theme03/source/assets/3d/05.pngbinary920.3 KB
project/src/components/themes/theme03/source/assets/3d/06.pngbinary1.2 MB
project/src/components/themes/theme03/source/assets/3d/07.pngbinary1.6 MB
project/src/components/themes/theme03/source/assets/3d/08.pngbinary1.4 MB
project/src/components/themes/theme03/source/assets/3d/09.pngbinary1.9 MB
project/src/components/themes/theme03/source/assets/3d/10.pngbinary1.4 MB
project/src/components/themes/theme03/source/assets/3d/11.pngbinary1.6 MB
project/src/components/themes/theme03/source/assets/3d/12.pngbinary1.8 MB
project/src/components/themes/theme03/source/src/icons.jsscript799 B
project/src/components/themes/theme03/source/src/preset3d.jsscript119 B
project/src/components/themes/theme03/source/src/presetBase.jsscript3.4 KB
project/src/components/themes/theme03/source/src/registry.jsscript22.3 KB
project/src/components/themes/theme03/source/src/slides/safeProps.jsscript504 B
project/src/components/themes/theme03/source/src/theme.cssother5.4 KB
project/src/components/themes/theme03/source/src/theme.jsscript3.0 KB
project/src/components/themes/theme04/TEXT_CONTROL_POLICY.mdmarkdown344 B
project/src/components/themes/theme04/metadata.jsscript324.4 KB
project/src/components/themes/theme04/overrides.jsscript118 B
project/src/components/themes/theme04/source/image-slot.jsscript41.0 KB
project/src/components/themes/theme05/metadata.jsscript492.0 KB
project/src/components/themes/theme05/source/styles/exc-covers.cssother9.6 KB
project/src/components/themes/theme05/source/styles/pulse-deck.cssother288.9 KB
project/src/components/themes/theme06/metadata.jsscript331.7 KB
project/src/components/themes/theme07/metadata.jsscript319.6 KB
project/src/components/themes/theme07/source/src/theme.jsscript2.9 KB
project/src/components/themes/theme08/metadata.jsscript366.7 KB
project/src/components/themes/theme08/source/image-slot.jsscript45 B
project/src/components/themes/theme09/metadata.jsscript378.4 KB
project/src/components/themes/theme10/metadata.jsscript294.2 KB
project/src/components/themes/theme11/metadata.jsscript399.9 KB
project/src/components/themes/theme12/metadata.jsscript311.7 KB
project/src/components/themes/theme12/source/src/index.jsscript23.1 KB
project/src/components/themes/theme12/source/src/swTheme.jsscript2.3 KB
project/src/components/themes/unicorn-background.jsxother2.0 KB
project/src/control-naming.mjsscript17.2 KB
project/src/deckComposer.jsxother18.8 KB
project/src/generated-metadata-writer.mjsscript722 B
project/src/i18n-core.mjsscript2.3 KB
project/src/i18n.mjsscript1.8 KB
project/src/metadata-serialize.mjsscript6.1 KB
project/src/options.jsxother1.5 KB
project/src/prop-contract-core.mjsscript70.1 KB
project/src/propContracts.jsxother658 B
project/src/react-shim.jsscript51 B
project/src/renderDeck.jsxother14.0 KB
project/src/runtime-assets.mjsscript1.7 KB
project/src/types.d.tsscript1.7 KB
project/src/variant-contract.mjsscript28.8 KB
project/src/variant-materializer.mjsscript9.0 KB
project/src/view-model/context.jsxother382 B
project/src/view-model/index.jsxother26.0 KB
project/src/view-model/schema-v2-canonical.mjsscript471 B
references/examples/annual-review.jsonconfig14.9 KB
references/examples/portfolio.jsonconfig13.1 KB
references/goal-spec.schema.jsonconfig9.9 KB
references/layout-roles.mdmarkdown1.7 KB
references/options.mdmarkdown7.5 KB
scripts/check_latest_version.mjsexecutablescript3.1 KB
scripts/render_goal_deck.ps1script4.5 KB
scripts/render_goal_deck.shexecutablescript2.3 KB

project/assets/unicorn/moving_into_remix_scene.json

View on GitHub
{"history":[{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"gradient","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"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":"5b29c41c-95b2-42f8-9be1-3f12a248b10c","publicId":"gradient"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"custom","customPingPongShader":null,"createdFrom":"blocks","usesPingPong":false,"texture":false,"textures":[],"animating":true,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"editHistory":[{"hint":"want the option to change the shape of the blocks","comment":"I've added a new \"Shape\" control that lets you switch between rectangular blocks and rounded capsules.","traceId":"6dae75ac-a9f2-4c73-a5c1-d6a178929945","provider":"gemini","model":"gemini-3-flash-preview","intent":"","feedbackValue":""},{"hint":"like don't need a shape control but dropdown option with some simple shape options","comment":"I've updated the shape control to include a new Circle option alongside Rectangles and Capsules.","traceId":"c4af4592-b578-45a8-918e-68ed8bd7dd5d","provider":"gemini","model":"gemini-3-flash-preview","intent":"","feedbackValue":""},{"hint":"remove the shape option","comment":"I've removed the shape option and restored the blocks to their original rectangular form.","traceId":"78294c15-b808-4b6f-aac9-141e629fbdce","provider":"gemini","model":"gemini-3-flash-preview","intent":"","feedbackValue":""},{"hint":"add the shape thing back","comment":"I've restored the shape control, allowing you to choose between rectangles, capsules, and circles for the blocks.","traceId":"ab929b58-67cb-4455-b121-5ff6a2465bfb","provider":"gemini","model":"gemini-3-flash-preview","intent":"","feedbackValue":""}],"customFragmentShaders":["#version 300 es\nprecision highp float;\n\nin vec2 vTextureCoord;\n\nuniform sampler2D uTexture;\nuniform vec2 uPos;\nuniform vec3 uColor1;\nuniform vec3 uColor2;\nuniform int uBlendMode;\nuniform int uDensity;\nuniform float uSize;\nuniform float uSpread;\nuniform float uLaneWidth;\nuniform float uVariance;\nuniform float uSkew;\nuniform float uAngle;\nuniform float uDepthBlur;\nuniform int uDirection;\nuniform float uTime;\nuniform float uAiShape; // AI edit: 0 for box, 1 for capsule, 2 for circle\n\n  uniform sampler2D uMaskTexture;\n  uniform int uIsMask;\n  uniform vec2 uMousePos;\n  uniform vec2 uResolution;\n  uniform float uParentTrackMouse;\n\n  vec3 blend (int blendMode, vec3 src, vec3 dst) {\n\n    if(blendMode == 0) {\n      return src;\n    }\n\n    if(blendMode == 1) {\n      return src + dst;\n    }\n\n    if(blendMode == 2) {\n      return src - dst;\n    }\n\n    if(blendMode == 3) {\n      return src * dst;\n    }\n\n    if(blendMode == 4) {\n      return 1. - (1. - src) * (1. - dst);\n    }\n\n    if(blendMode == 5) {\n      return vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)), (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)), (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n    }\n\n    if(blendMode == 6) {\n      return min(src, dst);\n    }\n\n    if(blendMode == 7) {\n      return max(src, dst);\n    }\n\n    if(blendMode == 8) {\n      return vec3((src.x == 1.0) ? 1.0 : min(1.0, dst.x / (1.0 - src.x)), (src.y == 1.0) ? 1.0 : min(1.0, dst.y / (1.0 - src.y)), (src.z == 1.0) ? 1.0 : min(1.0, dst.z / (1.0 - src.z)));\n    }\n\n    if(blendMode == 9) {\n      return vec3((src.x == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.x) / src.x)), (src.y == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.y) / src.y)), (src.z == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.z) / src.z)));\n    }\n\n    if(blendMode == 10) {\n      return (src + dst) - 1.0;\n    }\n\n    if(blendMode == 11) {\n      return vec3((src.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - src.x) * (1.0 - dst.x)), (src.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - src.y) * (1.0 - dst.y)),  (src.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - src.z) * (1.0 - dst.z)));\n    }\n\n    if(blendMode == 12) {\n      return vec3((src.x <= 0.5) ? (dst.x - (1.0 - 2.0 * src.x) * dst.x * (1.0 - dst.x)) : (((src.x > 0.5) && (dst.x <= 0.25)) ? (dst.x + (2.0 * src.x - 1.0) * (4.0 * dst.x * (4.0 * dst.x + 1.0) * (dst.x - 1.0) + 7.0 * dst.x)) : (dst.x + (2.0 * src.x - 1.0) * (sqrt(dst.x) - dst.x))), (src.y <= 0.5) ? (dst.y - (1.0 - 2.0 * src.y) * dst.y * (1.0 - dst.y)) : (((src.y > 0.5) && (dst.y <= 0.25)) ? (dst.y + (2.0 * src.y - 1.0) * (4.0 * dst.y * (4.0 * dst.y + 1.0) * (dst.y - 1.0) + 7.0 * dst.y)) : (dst.y + (2.0 * src.y - 1.0) * (sqrt(dst.y) - dst.y))), (src.z <= 0.5) ? (dst.z - (1.0 - 2.0 * src.z) * dst.z * (1.0 - dst.z)) : (((src.z > 0.5) && (dst.z <= 0.25)) ? (dst.z + (2.0 * src.z - 1.0) * (4.0 * dst.z * (4.0 * dst.z + 1.0) * (dst.z - 1.0) + 7.0 * dst.z)) : (dst.z + (2.0 * src.z - 1.0) * (sqrt(dst.z) - dst.z))));\n    }\n\n    if(blendMode == 13) {\n      return abs(dst - src);\n    }\n\n    if(blendMode == 14) {\n      return src + dst - 2.0 * src * dst;\n    }\n\n    if(blendMode == 15) {\n      return 2.0 * src + dst - 1.0;\n    }\n\n    if(blendMode == 16) {\n      return vec3((src.x > 0.5) ? max(dst.x, 2.0 * (src.x - 0.5)) : min(dst.x, 2.0 * src.x), (src.x > 0.5) ? max(dst.y, 2.0 * (src.y - 0.5)) : min(dst.y, 2.0 * src.y), (src.z > 0.5) ? max(dst.z, 2.0 * (src.z - 0.5)) : min(dst.z, 2.0 * src.z));\n    }\n\n    if(blendMode == 17) {\n      return vec3((src.x <= 0.5) ? (1.0 - (1.0 - dst.x) / (2.0 * src.x)) : (dst.x / (2.0 * (1.0 - src.x))), (src.y <= 0.5) ? (1.0 - (1.0 - dst.y) / (2.0 * src.y)) : (dst.y / (2.0 * (1.0 - src.y))), (src.z <= 0.5) ? (1.0 - (1.0 - dst.z) / (2.0 * src.z)) : (dst.z / (2.0 * (1.0 - src.z))));\n    }\n\n  }\n\nout vec4 fragColor;\n\nconst int MAX_BLOCKS = 60;\nconst float EPSILON = 0.0001;\nconst float PI = 3.14159265359;\nconst float TAU = 6.28318530718;\n\nvec2 hash21(float n) {\n  return fract(sin(vec2(n, n + 17.0) * vec2(127.1, 311.7)) * 43758.5453123);\n}\n\nfloat sdBox(vec2 p, vec2 b) {\n  vec2 d = abs(p) - b;\n  return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n}\n\nvec2 rotateAround(vec2 uv, vec2 center, float angle, float aspect) {\n  vec2 p = (uv - center) * vec2(aspect, 1.0);\n  float c = cos(angle);\n  float s = sin(angle);\n  p = mat2(c, -s, s, c) * p;\n  return p / vec2(aspect, 1.0) + center;\n}\n\nvec3 getRayDirection(vec2 uv, float aspect, float focalLength) {\n  vec2 screen = vec2((uv.x - uPos.x) * aspect, uv.y - uPos.y);\n  return normalize(vec3(screen, focalLength));\n}\n\nbool intersectAABB(vec3 rayOrigin, vec3 rayDir, vec3 boxMin, vec3 boxMax) {\n  vec3 safeRayDir = vec3(\n    abs(rayDir.x) < EPSILON ? (rayDir.x < 0.0 ? -EPSILON : EPSILON) : rayDir.x,\n    abs(rayDir.y) < EPSILON ? (rayDir.y < 0.0 ? -EPSILON : EPSILON) : rayDir.y,\n    abs(rayDir.z) < EPSILON ? (rayDir.z < 0.0 ? -EPSILON : EPSILON) : rayDir.z\n  );\n  vec3 t0 = (boxMin - rayOrigin) / safeRayDir;\n  vec3 t1 = (boxMax - rayOrigin) / safeRayDir;\n  vec3 tMin3 = min(t0, t1);\n  vec3 tMax3 = max(t0, t1);\n  float tMin = max(max(tMin3.x, tMin3.y), max(tMin3.z, 0.0));\n  float tMax = min(min(tMax3.x, tMax3.y), tMax3.z);\n  return tMax >= tMin;\n}\n\nbool intersectSidePlane(vec3 rayOrigin, vec3 rayDir, float planeOffset, vec2 planeCenter, vec2 planeHalfSize, bool planeIsY, out float tHit, out vec2 hitLocal) {\n  float rayAxis = planeIsY ? rayDir.y : rayDir.x;\n  float originAxis = planeIsY ? rayOrigin.y : rayOrigin.x;\n  float safeRayAxis = sign(rayAxis) * max(abs(rayAxis), EPSILON);\n  tHit = (planeOffset - originAxis) / safeRayAxis;\n\n  if (tHit <= 0.0) {\n    return false;\n  }\n\n  vec3 hit = rayOrigin + rayDir * tHit;\n  hitLocal = planeIsY\n    ? vec2(hit.x - planeCenter.x, hit.z - planeCenter.y)\n    : vec2(hit.y - planeCenter.x, hit.z - planeCenter.y);\n\n  if (abs(hitLocal.x) > planeHalfSize.x || abs(hitLocal.y) > planeHalfSize.y) {\n    return false;\n  }\n\n  return true;\n}\n\nvec3 getBlockBlend(vec3 blockColor, vec3 baseColor) {\n  // #ifelseopen\n  if (uBlendMode > 0) {\n    return blend(uBlendMode, blockColor, baseColor);\n  }\n  // #ifelseclose\n\n  return blockColor;\n}\n\nfloat angleDelta(float a, float b) {\n  return mod(a - b + PI, TAU) - PI;\n}\n\nfloat sdArcSegment(float radiusNow, float angleNow, float radius, float angleCenter, vec2 halfSize) {\n  float tangentDistance = angleDelta(angleNow, angleCenter) * max(radius, EPSILON);\n  return sdBox(vec2(radiusNow - radius, tangentDistance), halfSize);\n}\n\nvec4 getBlendedColor(vec4 color, vec3 blockColor, float alpha) {\n  return vec4(\n    mix(color.rgb, getBlockBlend(blockColor, color.rgb), alpha),\n    max(color.a, alpha)\n  );\n}\n\nvec4 renderFlatBlocks(vec2 uv, vec4 baseColor, float aspect, float time) {\n  vec4 color = baseColor;\n  int blockCount = clamp(uDensity, 1, MAX_BLOCKS);\n  float countRange = max(float(blockCount - 1), 1.0);\n  float baseSize = mix(0.01, 0.07, uSize);\n  float spread = mix(0.25, 1.25, uSpread);\n  float blurStrength = mix(0.0025, 0.03, uDepthBlur);\n  float skewAspect = exp2((uSkew - 0.5) * 2.4);\n  vec2 flatStretch = vec2(1.95, 0.85);\n  float maxSizeVariance = mix(1.0, 1.9, uVariance);\n  float maxAspectVariance = mix(1.0, 1.6, uVariance);\n  float maxDepthScale = 1.35;\n  float skewBound = max(skewAspect, 1.0 / skewAspect);\n  vec2 maxHalfSize = baseSize * maxSizeVariance * maxDepthScale * flatStretch * skewBound * maxAspectVariance;\n  vec2 bandReach = vec2(\n    spread * 0.5 + maxHalfSize.x + blurStrength / aspect,\n    spread * 0.5 + maxHalfSize.y + blurStrength\n  );\n  float travelMargin = max(\n    maxHalfSize.x + blurStrength / aspect,\n    0.16\n  );\n  float crossAxisDistance = abs(uv.y - uPos.y);\n  float crossAxisBand = bandReach.y;\n  float remainingAlpha = 1.0;\n\n  if (crossAxisDistance > crossAxisBand) {\n    return color;\n  }\n\n  for (int i = 0; i < MAX_BLOCKS; i++) {\n    if (i >= blockCount) {\n      break;\n    }\n\n    float fi = float(i) + 1.0;\n    vec2 rnd = hash21(fi * 23.17);\n    float rnd2 = fract((rnd.x + rnd.y) * 12.35731);\n    float rnd3 = fract((rnd.x * 5.731 + rnd.y * 9.137) * 4.17321);\n    float layerDepth = clamp((float(i) + rnd.x * 0.75) / (countRange + 0.75), 0.0, 1.0);\n    float travel = fract(rnd.y + time * mix(0.18, 1.0, layerDepth));\n    float sizeVariance = mix(1.0, mix(0.55, 1.9, rnd2), uVariance);\n    float aspectVariance = mix(1.0, mix(0.65, 1.6, rnd3), uVariance);\n    float depthScale = mix(0.6, 1.35, layerDepth);\n    vec2 stretch = flatStretch;\n\n    stretch *= vec2(skewAspect, 1.0 / skewAspect);\n    stretch *= vec2(aspectVariance, 1.0 / aspectVariance);\n\n    vec2 center = vec2(\n      mix(-travelMargin, 1.0 + travelMargin, travel),\n      uPos.y + (rnd.x - 0.5) * spread\n    );\n\n    vec2 halfSize = baseSize * sizeVariance * depthScale * stretch;\n    vec2 local = vec2((uv.x - center.x) * aspect, uv.y - center.y);\n    vec2 boxHalfSize = vec2(halfSize.x * aspect, halfSize.y);\n    float feather = blurStrength * mix(1.0, 0.16, layerDepth);\n\n    if (abs(local.x) > boxHalfSize.x + feather || abs(local.y) > boxHalfSize.y + feather) {\n      continue;\n    }\n\n    float box = 0.0;\n    if (uAiShape >= 2.0) {\n      box = length(local) - boxHalfSize.x;\n    } else if (uAiShape >= 1.0) {\n      vec2 q = abs(local) - (boxHalfSize - boxHalfSize.x);\n      box = length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - boxHalfSize.x;\n    } else {\n      box = sdBox(local, boxHalfSize);\n    }\n    float mask = 1.0 - smoothstep(0.0, feather, box);\n    float alphaDepth = layerDepth * (1.35 - 0.35 * layerDepth);\n    float alpha = mask * mix(0.16, 0.88, alphaDepth);\n    vec3 blockColor = mix(uColor1, uColor2, rnd2);\n    blockColor *= mix(0.72, 1.08, layerDepth);\n    vec3 blendedColor = getBlockBlend(blockColor, color.rgb);\n    color = vec4(mix(color.rgb, blendedColor, alpha), max(color.a, alpha));\n    remainingAlpha *= 1.0 - alpha;\n\n    if (remainingAlpha < 0.015) {\n      break;\n    }\n  }\n\n  return color;\n}\n\nvec4 renderCircularBlocks(vec2 uv, vec4 baseColor, float aspect, float time) {\n  vec4 color = baseColor;\n  int blockCount = clamp(uDensity, 1, MAX_BLOCKS);\n  float countRange = max(float(blockCount - 1), 1.0);\n  float baseSize = mix(0.008, 0.05, uSize);\n  float ringRadius = mix(0.08, 0.55, uSpread);\n  float blurStrength = mix(0.0025, 0.03, uDepthBlur);\n  float skewAspect = exp2((uSkew - 0.5) * 2.4);\n  vec2 circularStretch = vec2(0.45, 1.85);\n  float maxSizeVariance = mix(1.0, 1.9, uVariance);\n  float maxAspectVariance = mix(1.0, 1.6, uVariance);\n  float maxDepthScale = 1.35;\n  float skewBound = max(skewAspect, 1.0 / skewAspect);\n  vec2 maxHalfSize = baseSize * maxSizeVariance * maxDepthScale * circularStretch * skewBound * maxAspectVariance;\n  float radialVariance = ringRadius * 0.45 * uVariance;\n  float remainingAlpha = 1.0;\n  vec2 ringLocal = (uv - uPos) * vec2(aspect, 1.0);\n  float ringDistance = length(ringLocal);\n  float ringAngle = atan(ringLocal.y, ringLocal.x);\n\n  if (abs(ringDistance - ringRadius) > radialVariance + maxHalfSize.x + blurStrength) {\n    return color;\n  }\n\n  for (int i = 0; i < MAX_BLOCKS; i++) {\n    if (i >= blockCount) {\n      break;\n    }\n\n    float fi = float(i) + 1.0;\n    vec2 rnd = hash21(fi * 23.17);\n    float rnd2 = fract((rnd.x + rnd.y) * 12.35731);\n    float rnd3 = fract((rnd.x * 5.731 + rnd.y * 9.137) * 4.17321);\n    float layerDepth = clamp((float(i) + rnd.x * 0.75) / (countRange + 0.75), 0.0, 1.0);\n    float travel = fract(rnd.y + time * mix(0.18, 1.0, layerDepth));\n    float sizeVariance = mix(1.0, mix(0.55, 1.9, rnd2), uVariance);\n    float aspectVariance = mix(1.0, mix(0.65, 1.6, rnd3), uVariance);\n    float depthScale = mix(0.6, 1.35, layerDepth);\n    vec2 stretch = circularStretch;\n\n    stretch *= vec2(skewAspect, 1.0 / skewAspect);\n    stretch *= vec2(aspectVariance, 1.0 / aspectVariance);\n\n    vec2 halfSize = baseSize * sizeVariance * depthScale * stretch;\n    float segmentRadius = max(ringRadius + (rnd3 - 0.5) * radialVariance, halfSize.x + blurStrength);\n    float segmentAngle = travel * TAU;\n    float tangentDistance = angleDelta(ringAngle, segmentAngle) * segmentRadius;\n    float feather = blurStrength * mix(1.0, 0.16, layerDepth);\n\n    if (abs(ringDistance - segmentRadius) > halfSize.x + feather || abs(tangentDistance) > halfSize.y + feather) {\n      continue;\n    }\n\n    float segment = 0.0;\n    if (uAiShape >= 2.0) {\n      segment = length(vec2(ringDistance - segmentRadius, tangentDistance)) - halfSize.x;\n    } else if (uAiShape >= 1.0) {\n      vec2 q = abs(vec2(ringDistance - segmentRadius, tangentDistance)) - (halfSize - halfSize.x);\n      segment = length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - halfSize.x;\n    } else {\n      segment = sdArcSegment(ringDistance, ringAngle, segmentRadius, segmentAngle, halfSize);\n    }\n    float mask = 1.0 - smoothstep(0.0, feather, segment);\n    float alphaDepth = layerDepth * (1.35 - 0.35 * layerDepth);\n    float alpha = mask * mix(0.16, 0.88, alphaDepth);\n    vec3 blockColor = mix(uColor1, uColor2, rnd2);\n    blockColor *= mix(0.72, 1.08, layerDepth);\n    vec3 blendedColor = getBlockBlend(blockColor, color.rgb);\n    color = vec4(mix(color.rgb, blendedColor, alpha), max(color.a, alpha));\n    remainingAlpha *= 1.0 - alpha;\n\n    if (remainingAlpha < 0.015) {\n      break;\n    }\n  }\n\n  return color;\n}\n\nvec4 renderPerspectiveBlocks(vec2 uv, vec4 baseColor, float aspect, float time) {\n  vec4 color = baseColor;\n  int blockCount = clamp(uDensity, 1, MAX_BLOCKS);\n  float countRange = max(float(blockCount - 1), 1.0);\n  float baseSize = mix(0.002, 0.07, uSize);\n  float spread = mix(0.25, 1.25, uSpread);\n  float skewAspect = exp2(((1. - uSkew) - 0.25) * 2.4) * 2.4;\n  float skewBound = max(skewAspect, 1.0 / skewAspect);\n  float focalLength = 1.0;\n  float laneWidth = mix(0.18, 1.18, uLaneWidth);\n  float variance = mix(0.45, 1.15, uVariance);\n  float maxSizeVariance = mix(1.0, 1.9, uVariance);\n  float maxAspectVariance = mix(1.0, 1.6, uVariance);\n  vec2 perspectiveStretch = vec2(0.52, 3.1);\n  vec3 rayOrigin = vec3(0.0, 0.0, 0.0);\n  vec3 rayDir = getRayDirection(uv, aspect, focalLength);\n  float perspectiveCenter = (uPos.y - 0.5) * 5.2;\n  float maxCrossOffset = mix(0.08, 2.6, spread) * variance * 0.5;\n  float maxPlaneThickness = baseSize * mix(1.1, 2.6, maxSizeVariance);\n  float maxPlaneLength = baseSize * mix(5.0, 13.0, maxSizeVariance) * 3.2;\n  vec2 maxPlaneHalfSize = vec2(maxPlaneThickness, maxPlaneLength) * perspectiveStretch * skewBound * maxAspectVariance;\n  float maxFarDepth = 5.4 + maxPlaneLength * perspectiveStretch.y * 0.42 * 2.5;\n  vec3 volumeMin = vec3(\n    -2.6,\n    perspectiveCenter - maxCrossOffset - maxPlaneHalfSize.x,\n    -maxPlaneHalfSize.y * 2.0 - baseSize * 2.0\n  );\n  vec3 volumeMax = vec3(\n    2.6,\n    perspectiveCenter + maxCrossOffset + maxPlaneHalfSize.x,\n    maxFarDepth + maxPlaneHalfSize.y\n  );\n  float nearestHit = 1e9;\n  float secondHit = 1e9;\n  float nearestNearFactor = 0.0;\n  float secondNearFactor = 0.0;\n  float nearestHitDepth = 1.0;\n  float secondHitDepth = 1.0;\n  float nearestFarDepth = 1.0;\n  float secondFarDepth = 1.0;\n  float nearestRnd = 0.0;\n  float secondRnd = 0.0;\n  vec2 nearestLocal = vec2(0.0);\n  vec2 secondLocal = vec2(0.0);\n  vec2 nearestHalfSize = vec2(1.0);\n  vec2 secondHalfSize = vec2(1.0);\n  bool hasHit = false;\n  bool hasSecondHit = false;\n\n  if (!intersectAABB(rayOrigin, rayDir, volumeMin, volumeMax)) {\n    return color;\n  }\n\n  for (int i = 0; i < MAX_BLOCKS; i++) {\n    if (i >= blockCount) {\n      break;\n    }\n\n    float fi = float(i) + 1.0;\n    vec2 rnd = hash21(fi * 23.17);\n    float rnd2 = fract((rnd.x + rnd.y) * 12.35731);\n    float rnd3 = fract((rnd.x * 5.731 + rnd.y * 9.137) * 4.17321);\n    float layerDepth = clamp((float(i) + rnd.x * 0.75) / (countRange + 0.75), 0.0, 1.0);\n    float travel = fract(rnd.y + time * mix(0.18, 1.0, layerDepth));\n    float nearTravel = travel;\n    float sizeVariance = mix(1.0, mix(0.55, 1.9, rnd2), uVariance);\n    float aspectVariance = mix(1.0, mix(0.65, 1.6, rnd3), uVariance);\n    float side = mix(-1.0, 1.0, step(0.5, rnd2));\n    float laneOffset = side * mix(laneWidth, 2.6, rnd.x);\n    float crossOffset = perspectiveCenter + (rnd3 - 0.5) * mix(0.08, 2.6, spread) * variance;\n    float planeThickness = baseSize * mix(1.1, 2.6, sizeVariance);\n    float planeLength = baseSize * mix(5.0, 13.0, sizeVariance) * mix(1.15, 3.2, rnd2);\n    float planeOffset = laneOffset;\n    vec2 planeHalfSize = vec2(planeThickness, planeLength);\n\n    planeHalfSize *= perspectiveStretch;\n    planeHalfSize *= vec2(skewAspect, 1.0 / skewAspect);\n    planeHalfSize *= vec2(aspectVariance, 1.0 / aspectVariance);\n\n    float sizeDepthBoost = planeLength * perspectiveStretch.y * 0.42;\n    float farDepth = 5.4 + sizeDepthBoost * 2.5;\n    float nearDepth = -planeHalfSize.y - baseSize * 2.0;\n    float depth = mix(farDepth, nearDepth, nearTravel);\n    vec2 planeCenter = vec2(crossOffset, depth);\n\n// AI edit: restored shape logic\n    float tHit;\n    vec2 hitLocal;\n    bool hit = false;\n    if (uAiShape >= 2.0) {\n      hit = intersectSidePlane(rayOrigin, rayDir, planeOffset, planeCenter, vec2(planeHalfSize.x), false, tHit, hitLocal);\n      if (hit && length(hitLocal) > planeHalfSize.x) hit = false;\n    } else if (uAiShape >= 1.0) {\n      hit = intersectSidePlane(rayOrigin, rayDir, planeOffset, planeCenter, planeHalfSize, false, tHit, hitLocal);\n      if (hit) {\n        vec2 q = abs(hitLocal) - (planeHalfSize - planeHalfSize.x);\n        if (q.y > 0.0 && length(vec2(q.x, q.y)) > planeHalfSize.x) hit = false;\n      }\n    } else {\n      hit = intersectSidePlane(rayOrigin, rayDir, planeOffset, planeCenter, planeHalfSize, false, tHit, hitLocal);\n    }\n\n    if (hit) {\n      if (tHit < nearestHit) {\n        secondHit = nearestHit;\n        secondNearFactor = nearestNearFactor;\n        secondHitDepth = nearestHitDepth;\n        secondFarDepth = nearestFarDepth;\n        secondRnd = nearestRnd;\n        secondLocal = nearestLocal;\n        secondHalfSize = nearestHalfSize;\n        hasSecondHit = hasHit;\n\n        nearestHit = tHit;\n        nearestNearFactor = nearTravel;\n        nearestHitDepth = planeCenter.y + hitLocal.y;\n        nearestFarDepth = farDepth;\n        nearestRnd = rnd2;\n        nearestLocal = hitLocal;\n        nearestHalfSize = planeHalfSize;\n        hasHit = true;\n      } else if (tHit < secondHit) {\n        secondHit = tHit;\n        secondNearFactor = nearTravel;\n        secondHitDepth = planeCenter.y + hitLocal.y;\n        secondFarDepth = farDepth;\n        secondRnd = rnd2;\n        secondLocal = hitLocal;\n        secondHalfSize = planeHalfSize;\n        hasSecondHit = true;\n      }\n    }\n  }\n\n  if (hasHit) {\n    if (hasSecondHit) {\n      float secondFarFade = 1.0 - smoothstep(0.85, secondFarDepth, secondHitDepth);\n      float secondAlphaDepth = secondNearFactor * (1.35 - 0.35 * secondNearFactor);\n      float secondAlpha = secondFarFade * mix(0.3, 0.88, secondAlphaDepth);\n      vec3 secondColor = mix(uColor1, uColor2, secondRnd);\n      secondColor *= mix(0.66, 1.0, secondNearFactor);\n      color = getBlendedColor(color, secondColor, secondAlpha);\n    }\n\n    float farFade = 1.0 - smoothstep(0.85, nearestFarDepth, nearestHitDepth);\n    float alphaDepth = nearestNearFactor * (1.35 - 0.35 * nearestNearFactor);\n    float alpha = farFade * mix(0.42, 1.0, alphaDepth);\n    vec3 blockColor = mix(uColor1, uColor2, nearestRnd);\n    blockColor *= mix(0.7, 1.1, nearestNearFactor);\n    color = getBlendedColor(color, blockColor, alpha);\n  }\n\n  return color;\n}\n\nvoid main() {\n  vec2 uv = vTextureCoord;\n  vec4 color = texture(uTexture, uv);\n  float aspect = uResolution.x / max(uResolution.y, EPSILON);\n  vec2 rotatedUv = uv;\n\n  // #ifelseopen\n  if(uAngle != 0.0) {\n    rotatedUv = rotateAround(uv, uPos, uAngle * -6.28318530718, aspect);\n  }\n  // #ifelseclose\n\n  float time = uTime * 0.01;\n\n  switch (uDirection) {\n    case 1: color = renderPerspectiveBlocks(rotatedUv, color, aspect, time); break;\n    case 2: color = renderCircularBlocks(rotatedUv, color, aspect, time); break;\n    default: color = renderFlatBlocks(rotatedUv, color, aspect, time); break;\n  }\n\n  // #ifelseopen\n  if(uIsMask == 1) {\n    vec2 maskPos = mix(vec2(0), (uMousePos - 0.5), uParentTrackMouse);\n    vec4 maskColor = texture(uMaskTexture, vTextureCoord - maskPos);\n    color = color * (maskColor.a * maskColor.a);\n  }\n  // #ifelseclose\n\n  fragColor = color;\n\n}"],"customVertexShaders":["#version 300 es\nprecision mediump float;\n\nin vec3 aVertexPosition;\nin vec2 aTextureCoord;\n\nuniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;\n\nout vec2 vTextureCoord;\nout vec3 vVertexPosition;\n\nvoid main() {\n  gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\n  vTextureCoord = (uTextureMatrix * 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;uniform sampler2D uTexture;\nuniform float uTime;uniform sampler2D uMaskTexture;\nuniform int uIsMask;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nuniform float uParentTrackMouse;vec3 blend (int blendMode, vec3 src, vec3 dst) {if(blendMode == 0) {\nreturn src;\n}if(blendMode == 1) {\nreturn src + dst;\n}if(blendMode == 2) {\nreturn src - dst;\n}if(blendMode == 3) {\nreturn src * dst;\n}if(blendMode == 4) {\nreturn 1. - (1. - src) * (1. - dst);\n}if(blendMode == 5) {\nreturn vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)), (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)), (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n}if(blendMode == 6) {\nreturn min(src, dst);\n}if(blendMode == 7) {\nreturn max(src, dst);\n}if(blendMode == 8) {\nreturn vec3((src.x == 1.0) ? 1.0 : min(1.0, dst.x / (1.0 - src.x)), (src.y == 1.0) ? 1.0 : min(1.0, dst.y / (1.0 - src.y)), (src.z == 1.0) ? 1.0 : min(1.0, dst.z / (1.0 - src.z)));\n}if(blendMode == 9) {\nreturn vec3((src.x == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.x) / src.x)), (src.y == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.y) / src.y)), (src.z == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.z) / src.z)));\n}if(blendMode == 10) {\nreturn (src + dst) - 1.0;\n}if(blendMode == 11) {\nreturn vec3((src.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - src.x) * (1.0 - dst.x)), (src.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - src.y) * (1.0 - dst.y)), (src.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - src.z) * (1.0 - dst.z)));\n}if(blendMode == 12) {\nreturn vec3((src.x <= 0.5) ? (dst.x - (1.0 - 2.0 * src.x) * dst.x * (1.0 - dst.x)) : (((src.x > 0.5) && (dst.x <= 0.25)) ? (dst.x + (2.0 * src.x - 1.0) * (4.0 * dst.x * (4.0 * dst.x + 1.0) * (dst.x - 1.0) + 7.0 * dst.x)) : (dst.x + (2.0 * src.x - 1.0) * (sqrt(dst.x) - dst.x))), (src.y <= 0.5) ? (dst.y - (1.0 - 2.0 * src.y) * dst.y * (1.0 - dst.y)) : (((src.y > 0.5) && (dst.y <= 0.25)) ? (dst.y + (2.0 * src.y - 1.0) * (4.0 * dst.y * (4.0 * dst.y + 1.0) * (dst.y - 1.0) + 7.0 * dst.y)) : (dst.y + (2.0 * src.y - 1.0) * (sqrt(dst.y) - dst.y))), (src.z <= 0.5) ? (dst.z - (1.0 - 2.0 * src.z) * dst.z * (1.0 - dst.z)) : (((src.z > 0.5) && (dst.z <= 0.25)) ? (dst.z + (2.0 * src.z - 1.0) * (4.0 * dst.z * (4.0 * dst.z + 1.0) * (dst.z - 1.0) + 7.0 * dst.z)) : (dst.z + (2.0 * src.z - 1.0) * (sqrt(dst.z) - dst.z))));\n}if(blendMode == 13) {\nreturn abs(dst - src);\n}if(blendMode == 14) {\nreturn src + dst - 2.0 * src * dst;\n}if(blendMode == 15) {\nreturn 2.0 * src + dst - 1.0;\n}if(blendMode == 16) {\nreturn vec3((src.x > 0.5) ? max(dst.x, 2.0 * (src.x - 0.5)) : min(dst.x, 2.0 * src.x), (src.x > 0.5) ? max(dst.y, 2.0 * (src.y - 0.5)) : min(dst.y, 2.0 * src.y), (src.z > 0.5) ? max(dst.z, 2.0 * (src.z - 0.5)) : min(dst.z, 2.0 * src.z));\n}if(blendMode == 17) {\nreturn vec3((src.x <= 0.5) ? (1.0 - (1.0 - dst.x) / (2.0 * src.x)) : (dst.x / (2.0 * (1.0 - src.x))), (src.y <= 0.5) ? (1.0 - (1.0 - dst.y) / (2.0 * src.y)) : (dst.y / (2.0 * (1.0 - src.y))), (src.z <= 0.5) ? (1.0 - (1.0 - dst.z) / (2.0 * src.z)) : (dst.z / (2.0 * (1.0 - src.z))));\n}}out vec4 fragColor;const int MAX_BLOCKS = 60;\nconst float EPSILON = 0.0001;\nconst float PI = 3.14159265359;\nconst float TAU = 6.28318530718;vec2 hash21(float n) {\nreturn fract(sin(vec2(n, n + 17.0) * vec2(127.1, 311.7)) * 43758.5453123);\n}vec2 rotateAround(vec2 uv, vec2 center, float angle, float aspect) {\nvec2 p = (uv - center) * vec2(aspect, 1.0);\nfloat c = cos(angle);\nfloat s = sin(angle);\np = mat2(c, -s, s, c) * p;\nreturn p / vec2(aspect, 1.0) + center;\n}vec3 getRayDirection(vec2 uv, float aspect, float focalLength) {\nvec2 screen = vec2((uv.x - vec2(0.5, 0.5).x) * aspect, uv.y - vec2(0.5, 0.5).y);\nreturn normalize(vec3(screen, focalLength));\n}bool intersectAABB(vec3 rayOrigin, vec3 rayDir, vec3 boxMin, vec3 boxMax) {\nvec3 safeRayDir = vec3(\nabs(rayDir.x) < EPSILON ? (rayDir.x < 0.0 ? -EPSILON : EPSILON) : rayDir.x,\nabs(rayDir.y) < EPSILON ? (rayDir.y < 0.0 ? -EPSILON : EPSILON) : rayDir.y,\nabs(rayDir.z) < EPSILON ? (rayDir.z < 0.0 ? -EPSILON : EPSILON) : rayDir.z\n);\nvec3 t0 = (boxMin - rayOrigin) / safeRayDir;\nvec3 t1 = (boxMax - rayOrigin) / safeRayDir;\nvec3 tMin3 = min(t0, t1);\nvec3 tMax3 = max(t0, t1);\nfloat tMin = max(max(tMin3.x, tMin3.y), max(tMin3.z, 0.0));\nfloat tMax = min(min(tMax3.x, tMax3.y), tMax3.z);\nreturn tMax >= tMin;\n}bool intersectSidePlane(vec3 rayOrigin, vec3 rayDir, float planeOffset, vec2 planeCenter, vec2 planeHalfSize, bool planeIsY, out float tHit, out vec2 hitLocal) {\nfloat rayAxis = planeIsY ? rayDir.y : rayDir.x;\nfloat originAxis = planeIsY ? rayOrigin.y : rayOrigin.x;\nfloat safeRayAxis = sign(rayAxis) * max(abs(rayAxis), EPSILON);\ntHit = (planeOffset - originAxis) / safeRayAxis;if (tHit <= 0.0) {\nreturn false;\n}vec3 hit = rayOrigin + rayDir * tHit;\nhitLocal = planeIsY\n? vec2(hit.x - planeCenter.x, hit.z - planeCenter.y)\n: vec2(hit.y - planeCenter.x, hit.z - planeCenter.y);if (abs(hitLocal.x) > planeHalfSize.x || abs(hitLocal.y) > planeHalfSize.y) {\nreturn false;\n}return true;\n}vec3 getBlockBlend(vec3 blockColor, vec3 baseColor) {\nreturn blend(1, blockColor, baseColor);return blockColor;\n}vec4 getBlendedColor(vec4 color, vec3 blockColor, float alpha) {\nreturn vec4(\nmix(color.rgb, getBlockBlend(blockColor, color.rgb), alpha),\nmax(color.a, alpha)\n);\n}vec4 renderPerspectiveBlocks(vec2 uv, vec4 baseColor, float aspect, float time) {\nvec4 color = baseColor;\nint blockCount = clamp(60, 1, MAX_BLOCKS);\nfloat countRange = max(float(blockCount - 1), 1.0);\nfloat baseSize = mix(0.002, 0.07, 1.5000);\nfloat spread = mix(0.25, 1.25, 2.5000);\nfloat skewAspect = exp2(((1. - 0.2500) - 0.25) * 2.4) * 2.4;\nfloat skewBound = max(skewAspect, 1.0 / skewAspect);\nfloat focalLength = 1.0;\nfloat laneWidth = mix(0.18, 1.18, 0.0000);\nfloat variance = mix(0.45, 1.15, 1.3000);\nfloat maxSizeVariance = mix(1.0, 1.9, 1.3000);\nfloat maxAspectVariance = mix(1.0, 1.6, 1.3000);\nvec2 perspectiveStretch = vec2(0.52, 3.1);\nvec3 rayOrigin = vec3(0.0, 0.0, 0.0);\nvec3 rayDir = getRayDirection(uv, aspect, focalLength);\nfloat perspectiveCenter = (vec2(0.5, 0.5).y - 0.5) * 5.2;\nfloat maxCrossOffset = mix(0.08, 2.6, spread) * variance * 0.5;\nfloat maxPlaneThickness = baseSize * mix(1.1, 2.6, maxSizeVariance);\nfloat maxPlaneLength = baseSize * mix(5.0, 13.0, maxSizeVariance) * 3.2;\nvec2 maxPlaneHalfSize = vec2(maxPlaneThickness, maxPlaneLength) * perspectiveStretch * skewBound * maxAspectVariance;\nfloat maxFarDepth = 5.4 + maxPlaneLength * perspectiveStretch.y * 0.42 * 2.5;\nvec3 volumeMin = vec3(\n-2.6,\nperspectiveCenter - maxCrossOffset - maxPlaneHalfSize.x,\n-maxPlaneHalfSize.y * 2.0 - baseSize * 2.0\n);\nvec3 volumeMax = vec3(\n2.6,\nperspectiveCenter + maxCrossOffset + maxPlaneHalfSize.x,\nmaxFarDepth + maxPlaneHalfSize.y\n);\nfloat nearestHit = 1e9;\nfloat secondHit = 1e9;\nfloat nearestNearFactor = 0.0;\nfloat secondNearFactor = 0.0;\nfloat nearestHitDepth = 1.0;\nfloat secondHitDepth = 1.0;\nfloat nearestFarDepth = 1.0;\nfloat secondFarDepth = 1.0;\nfloat nearestRnd = 0.0;\nfloat secondRnd = 0.0;\nvec2 nearestLocal = vec2(0.0);\nvec2 secondLocal = vec2(0.0);\nvec2 nearestHalfSize = vec2(1.0);\nvec2 secondHalfSize = vec2(1.0);\nbool hasHit = false;\nbool hasSecondHit = false;if (!intersectAABB(rayOrigin, rayDir, volumeMin, volumeMax)) {\nreturn color;\n}for (int i = 0; i < MAX_BLOCKS; i++) {\nif (i >= blockCount) {\nbreak;\n}float fi = float(i) + 1.0;\nvec2 rnd = hash21(fi * 23.17);\nfloat rnd2 = fract((rnd.x + rnd.y) * 12.35731);\nfloat rnd3 = fract((rnd.x * 5.731 + rnd.y * 9.137) * 4.17321);\nfloat layerDepth = clamp((float(i) + rnd.x * 0.75) / (countRange + 0.75), 0.0, 1.0);\nfloat travel = fract(rnd.y + time * mix(0.18, 1.0, layerDepth));\nfloat nearTravel = travel;\nfloat sizeVariance = mix(1.0, mix(0.55, 1.9, rnd2), 1.3000);\nfloat aspectVariance = mix(1.0, mix(0.65, 1.6, rnd3), 1.3000);\nfloat side = mix(-1.0, 1.0, step(0.5, rnd2));\nfloat laneOffset = side * mix(laneWidth, 2.6, rnd.x);\nfloat crossOffset = perspectiveCenter + (rnd3 - 0.5) * mix(0.08, 2.6, spread) * variance;\nfloat planeThickness = baseSize * mix(1.1, 2.6, sizeVariance);\nfloat planeLength = baseSize * mix(5.0, 13.0, sizeVariance) * mix(1.15, 3.2, rnd2);\nfloat planeOffset = laneOffset;\nvec2 planeHalfSize = vec2(planeThickness, planeLength);planeHalfSize *= perspectiveStretch;\nplaneHalfSize *= vec2(skewAspect, 1.0 / skewAspect);\nplaneHalfSize *= vec2(aspectVariance, 1.0 / aspectVariance);float sizeDepthBoost = planeLength * perspectiveStretch.y * 0.42;\nfloat farDepth = 5.4 + sizeDepthBoost * 2.5;\nfloat nearDepth = -planeHalfSize.y - baseSize * 2.0;\nfloat depth = mix(farDepth, nearDepth, nearTravel);\nvec2 planeCenter = vec2(crossOffset, depth);float tHit;\nvec2 hitLocal;\nbool hit = false;\nif (1.0000 >= 2.0) {\nhit = intersectSidePlane(rayOrigin, rayDir, planeOffset, planeCenter, vec2(planeHalfSize.x), false, tHit, hitLocal);\nif (hit && length(hitLocal) > planeHalfSize.x) hit = false;\n} else if (1.0000 >= 1.0) {\nhit = intersectSidePlane(rayOrigin, rayDir, planeOffset, planeCenter, planeHalfSize, false, tHit, hitLocal);\nif (hit) {\nvec2 q = abs(hitLocal) - (planeHalfSize - planeHalfSize.x);\nif (q.y > 0.0 && length(vec2(q.x, q.y)) > planeHalfSize.x) hit = false;\n}\n} else {\nhit = intersectSidePlane(rayOrigin, rayDir, planeOffset, planeCenter, planeHalfSize, false, tHit, hitLocal);\n}if (hit) {\nif (tHit < nearestHit) {\nsecondHit = nearestHit;\nsecondNearFactor = nearestNearFactor;\nsecondHitDepth = nearestHitDepth;\nsecondFarDepth = nearestFarDepth;\nsecondRnd = nearestRnd;\nsecondLocal = nearestLocal;\nsecondHalfSize = nearestHalfSize;\nhasSecondHit = hasHit;nearestHit = tHit;\nnearestNearFactor = nearTravel;\nnearestHitDepth = planeCenter.y + hitLocal.y;\nnearestFarDepth = farDepth;\nnearestRnd = rnd2;\nnearestLocal = hitLocal;\nnearestHalfSize = planeHalfSize;\nhasHit = true;\n} else if (tHit < secondHit) {\nsecondHit = tHit;\nsecondNearFactor = nearTravel;\nsecondHitDepth = planeCenter.y + hitLocal.y;\nsecondFarDepth = farDepth;\nsecondRnd = rnd2;\nsecondLocal = hitLocal;\nsecondHalfSize = planeHalfSize;\nhasSecondHit = true;\n}\n}\n}if (hasHit) {\nif (hasSecondHit) {\nfloat secondFarFade = 1.0 - smoothstep(0.85, secondFarDepth, secondHitDepth);\nfloat secondAlphaDepth = secondNearFactor * (1.35 - 0.35 * secondNearFactor);\nfloat secondAlpha = secondFarFade * mix(0.3, 0.88, secondAlphaDepth);\nvec3 secondColor = mix(vec3(0, 0.42745098039215684, 0.8274509803921568), vec3(0.9607843137254902, 0, 0.19607843137254902), secondRnd);\nsecondColor *= mix(0.66, 1.0, secondNearFactor);\ncolor = getBlendedColor(color, secondColor, secondAlpha);\n}float farFade = 1.0 - smoothstep(0.85, nearestFarDepth, nearestHitDepth);\nfloat alphaDepth = nearestNearFactor * (1.35 - 0.35 * nearestNearFactor);\nfloat alpha = farFade * mix(0.42, 1.0, alphaDepth);\nvec3 blockColor = mix(vec3(0, 0.42745098039215684, 0.8274509803921568), vec3(0.9607843137254902, 0, 0.19607843137254902), nearestRnd);\nblockColor *= mix(0.7, 1.1, nearestNearFactor);\ncolor = getBlendedColor(color, blockColor, alpha);\n}return color;\n}void main() {\nvec2 uv = vTextureCoord;\nvec4 color = texture(uTexture, uv);\nfloat aspect = uResolution.x / max(uResolution.y, EPSILON);\nvec2 rotatedUv = uv;rotatedUv = rotateAround(uv, vec2(0.5, 0.5), 0.6453 * -6.28318530718, aspect);float time = uTime * 0.01;color = renderPerspectiveBlocks(rotatedUv, color, aspect, time);\nif(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","fragmentShader":"#version 300 es\nprecision highp float;\n\nin vec2 vTextureCoord;\n\nuniform sampler2D uTexture;\nuniform vec2 uPos;\nuniform vec3 uColor1;\nuniform vec3 uColor2;\nuniform int uBlendMode;\nuniform int uDensity;\nuniform float uSize;\nuniform float uSpread;\nuniform float uLaneWidth;\nuniform float uVariance;\nuniform float uSkew;\nuniform float uAngle;\nuniform float uDepthBlur;\nuniform int uDirection;\nuniform float uTime;\nuniform float uAiShape; // AI edit: 0 for box, 1 for capsule, 2 for circle\n\n  uniform sampler2D uMaskTexture;\n  uniform int uIsMask;\n  uniform vec2 uMousePos;\n  uniform vec2 uResolution;\n  uniform float uParentTrackMouse;\n\n  vec3 blend (int blendMode, vec3 src, vec3 dst) {\n\n    if(blendMode == 0) {\n      return src;\n    }\n\n    if(blendMode == 1) {\n      return src + dst;\n    }\n\n    if(blendMode == 2) {\n      return src - dst;\n    }\n\n    if(blendMode == 3) {\n      return src * dst;\n    }\n\n    if(blendMode == 4) {\n      return 1. - (1. - src) * (1. - dst);\n    }\n\n    if(blendMode == 5) {\n      return vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)), (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)), (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n    }\n\n    if(blendMode == 6) {\n      return min(src, dst);\n    }\n\n    if(blendMode == 7) {\n      return max(src, dst);\n    }\n\n    if(blendMode == 8) {\n      return vec3((src.x == 1.0) ? 1.0 : min(1.0, dst.x / (1.0 - src.x)), (src.y == 1.0) ? 1.0 : min(1.0, dst.y / (1.0 - src.y)), (src.z == 1.0) ? 1.0 : min(1.0, dst.z / (1.0 - src.z)));\n    }\n\n    if(blendMode == 9) {\n      return vec3((src.x == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.x) / src.x)), (src.y == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.y) / src.y)), (src.z == 0.0) ? 0.0 : (1.0 - ((1.0 - dst.z) / src.z)));\n    }\n\n    if(blendMode == 10) {\n      return (src + dst) - 1.0;\n    }\n\n    if(blendMode == 11) {\n      return vec3((src.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - src.x) * (1.0 - dst.x)), (src.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - src.y) * (1.0 - dst.y)),  (src.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - src.z) * (1.0 - dst.z)));\n    }\n\n    if(blendMode == 12) {\n      return vec3((src.x <= 0.5) ? (dst.x - (1.0 - 2.0 * src.x) * dst.x * (1.0 - dst.x)) : (((src.x > 0.5) && (dst.x <= 0.25)) ? (dst.x + (2.0 * src.x - 1.0) * (4.0 * dst.x * (4.0 * dst.x + 1.0) * (dst.x - 1.0) + 7.0 * dst.x)) : (dst.x + (2.0 * src.x - 1.0) * (sqrt(dst.x) - dst.x))), (src.y <= 0.5) ? (dst.y - (1.0 - 2.0 * src.y) * dst.y * (1.0 - dst.y)) : (((src.y > 0.5) && (dst.y <= 0.25)) ? (dst.y + (2.0 * src.y - 1.0) * (4.0 * dst.y * (4.0 * dst.y + 1.0) * (dst.y - 1.0) + 7.0 * dst.y)) : (dst.y + (2.0 * src.y - 1.0) * (sqrt(dst.y) - dst.y))), (src.z <= 0.5) ? (dst.z - (1.0 - 2.0 * src.z) * dst.z * (1.0 - dst.z)) : (((src.z > 0.5) && (dst.z <= 0.25)) ? (dst.z + (2.0 * src.z - 1.0) * (4.0 * dst.z * (4.0 * dst.z + 1.0) * (dst.z - 1.0) + 7.0 * dst.z)) : (dst.z + (2.0 * src.z - 1.0) * (sqrt(dst.z) - dst.z))));\n    }\n\n    if(blendMode == 13) {\n      return abs(dst - src);\n    }\n\n    if(blendMode == 14) {\n      return src + dst - 2.0 * src * dst;\n    }\n\n    if(blendMode == 15) {\n      return 2.0 * src + dst - 1.0;\n    }\n\n    if(blendMode == 16) {\n      return vec3((src.x > 0.5) ? max(dst.x, 2.0 * (src.x - 0.5)) : min(dst.x, 2.0 * src.x), (src.x > 0.5) ? max(dst.y, 2.0 * (src.y - 0.5)) : min(dst.y, 2.0 * src.y), (src.z > 0.5) ? max(dst.z, 2.0 * (src.z - 0.5)) : min(dst.z, 2.0 * src.z));\n    }\n\n    if(blendMode == 17) {\n      return vec3((src.x <= 0.5) ? (1.0 - (1.0 - dst.x) / (2.0 * src.x)) : (dst.x / (2.0 * (1.0 - src.x))), (src.y <= 0.5) ? (1.0 - (1.0 - dst.y) / (2.0 * src.y)) : (dst.y / (2.0 * (1.0 - src.y))), (src.z <= 0.5) ? (1.0 - (1.0 - dst.z) / (2.0 * src.z)) : (dst.z / (2.0 * (1.0 - src.z))));\n    }\n\n  }\n\nout vec4 fragColor;\n\nconst int MAX_BLOCKS = 60;\nconst float EPSILON = 0.0001;\nconst float PI = 3.14159265359;\nconst float TAU = 6.28318530718;\n\nvec2 hash21(float n) {\n  return fract(sin(vec2(n, n + 17.0) * vec2(127.1, 311.7)) * 43758.5453123);\n}\n\nfloat sdBox(vec2 p, vec2 b) {\n  vec2 d = abs(p) - b;\n  return length(max(d, 0.0)) + min(max(d.x, d.y), 0.0);\n}\n\nvec2 rotateAround(vec2 uv, vec2 center, float angle, float aspect) {\n  vec2 p = (uv - center) * vec2(aspect, 1.0);\n  float c = cos(angle);\n  float s = sin(angle);\n  p = mat2(c, -s, s, c) * p;\n  return p / vec2(aspect, 1.0) + center;\n}\n\nvec3 getRayDirection(vec2 uv, float aspect, float focalLength) {\n  vec2 screen = vec2((uv.x - uPos.x) * aspect, uv.y - uPos.y);\n  return normalize(vec3(screen, focalLength));\n}\n\nbool intersectAABB(vec3 rayOrigin, vec3 rayDir, vec3 boxMin, vec3 boxMax) {\n  vec3 safeRayDir = vec3(\n    abs(rayDir.x) < EPSILON ? (rayDir.x < 0.0 ? -EPSILON : EPSILON) : rayDir.x,\n    abs(rayDir.y) < EPSILON ? (rayDir.y < 0.0 ? -EPSILON : EPSILON) : rayDir.y,\n    abs(rayDir.z) < EPSILON ? (rayDir.z < 0.0 ? -EPSILON : EPSILON) : rayDir.z\n  );\n  vec3 t0 = (boxMin - rayOrigin) / safeRayDir;\n  vec3 t1 = (boxMax - rayOrigin) / safeRayDir;\n  vec3 tMin3 = min(t0, t1);\n  vec3 tMax3 = max(t0, t1);\n  float tMin = max(max(tMin3.x, tMin3.y), max(tMin3.z, 0.0));\n  float tMax = min(min(tMax3.x, tMax3.y), tMax3.z);\n  return tMax >= tMin;\n}\n\nbool intersectSidePlane(vec3 rayOrigin, vec3 rayDir, float planeOffset, vec2 planeCenter, vec2 planeHalfSize, bool planeIsY, out float tHit, out vec2 hitLocal) {\n  float rayAxis = planeIsY ? rayDir.y : rayDir.x;\n  float originAxis = planeIsY ? rayOrigin.y : rayOrigin.x;\n  float safeRayAxis = sign(rayAxis) * max(abs(rayAxis), EPSILON);\n  tHit = (planeOffset - originAxis) / safeRayAxis;\n\n  if (tHit <= 0.0) {\n    return false;\n  }\n\n  vec3 hit = rayOrigin + rayDir * tHit;\n  hitLocal = planeIsY\n    ? vec2(hit.x - planeCenter.x, hit.z - planeCenter.y)\n    : vec2(hit.y - planeCenter.x, hit.z - planeCenter.y);\n\n  if (abs(hitLocal.x) > planeHalfSize.x || abs(hitLocal.y) > planeHalfSize.y) {\n    return false;\n  }\n\n  return true;\n}\n\nvec3 getBlockBlend(vec3 blockColor, vec3 baseColor) {\n  // #ifelseopen\n  if (uBlendMode > 0) {\n    return blend(uBlendMode, blockColor, baseColor);\n  }\n  // #ifelseclose\n\n  return blockColor;\n}\n\nfloat angleDelta(float a, float b) {\n  return mod(a - b + PI, TAU) - PI;\n}\n\nfloat sdArcSegment(float radiusNow, float angleNow, float radius, float angleCenter, vec2 halfSize) {\n  float tangentDistance = angleDelta(angleNow, angleCenter) * max(radius, EPSILON);\n  return sdBox(vec2(radiusNow - radius, tangentDistance), halfSize);\n}\n\nvec4 getBlendedColor(vec4 color, vec3 blockColor, float alpha) {\n  return vec4(\n    mix(color.rgb, getBlockBlend(blockColor, color.rgb), alpha),\n    max(color.a, alpha)\n  );\n}\n\nvec4 renderFlatBlocks(vec2 uv, vec4 baseColor, float aspect, float time) {\n  vec4 color = baseColor;\n  int blockCount = clamp(uDensity, 1, MAX_BLOCKS);\n  float countRange = max(float(blockCount - 1), 1.0);\n  float baseSize = mix(0.01, 0.07, uSize);\n  float spread = mix(0.25, 1.25, uSpread);\n  float blurStrength = mix(0.0025, 0.03, uDepthBlur);\n  float skewAspect = exp2((uSkew - 0.5) * 2.4);\n  vec2 flatStretch = vec2(1.95, 0.85);\n  float maxSizeVariance = mix(1.0, 1.9, uVariance);\n  float maxAspectVariance = mix(1.0, 1.6, uVariance);\n  float maxDepthScale = 1.35;\n  float skewBound = max(skewAspect, 1.0 / skewAspect);\n  vec2 maxHalfSize = baseSize * maxSizeVariance * maxDepthScale * flatStretch * skewBound * maxAspectVariance;\n  vec2 bandReach = vec2(\n    spread * 0.5 + maxHalfSize.x + blurStrength / aspect,\n    spread * 0.5 + maxHalfSize.y + blurStrength\n  );\n  float travelMargin = max(\n    maxHalfSize.x + blurStrength / aspect,\n    0.16\n  );\n  float crossAxisDistance = abs(uv.y - uPos.y);\n  float crossAxisBand = bandReach.y;\n  float remainingAlpha = 1.0;\n\n  if (crossAxisDistance > crossAxisBand) {\n    return color;\n  }\n\n  for (int i = 0; i < MAX_BLOCKS; i++) {\n    if (i >= blockCount) {\n      break;\n    }\n\n    float fi = float(i) + 1.0;\n    vec2 rnd = hash21(fi * 23.17);\n    float rnd2 = fract((rnd.x + rnd.y) * 12.35731);\n    float rnd3 = fract((rnd.x * 5.731 + rnd.y * 9.137) * 4.17321);\n    float layerDepth = clamp((float(i) + rnd.x * 0.75) / (countRange + 0.75), 0.0, 1.0);\n    float travel = fract(rnd.y + time * mix(0.18, 1.0, layerDepth));\n    float sizeVariance = mix(1.0, mix(0.55, 1.9, rnd2), uVariance);\n    float aspectVariance = mix(1.0, mix(0.65, 1.6, rnd3), uVariance);\n    float depthScale = mix(0.6, 1.35, layerDepth);\n    vec2 stretch = flatStretch;\n\n    stretch *= vec2(skewAspect, 1.0 / skewAspect);\n    stretch *= vec2(aspectVariance, 1.0 / aspectVariance);\n\n    vec2 center = vec2(\n      mix(-travelMargin, 1.0 + travelMargin, travel),\n      uPos.y + (rnd.x - 0.5) * spread\n    );\n\n    vec2 halfSize = baseSize * sizeVariance * depthScale * stretch;\n    vec2 local = vec2((uv.x - center.x) * aspect, uv.y - center.y);\n    vec2 boxHalfSize = vec2(halfSize.x * aspect, halfSize.y);\n    float feather = blurStrength * mix(1.0, 0.16, layerDepth);\n\n    if (abs(local.x) > boxHalfSize.x + feather || abs(local.y) > boxHalfSize.y + feather) {\n      continue;\n    }\n\n    float box = 0.0;\n    if (uAiShape >= 2.0) {\n      box = length(local) - boxHalfSize.x;\n    } else if (uAiShape >= 1.0) {\n      vec2 q = abs(local) - (boxHalfSize - boxHalfSize.x);\n      box = length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - boxHalfSize.x;\n    } else {\n      box = sdBox(local, boxHalfSize);\n    }\n    float mask = 1.0 - smoothstep(0.0, feather, box);\n    float alphaDepth = layerDepth * (1.35 - 0.35 * layerDepth);\n    float alpha = mask * mix(0.16, 0.88, alphaDepth);\n    vec3 blockColor = mix(uColor1, uColor2, rnd2);\n    blockColor *= mix(0.72, 1.08, layerDepth);\n    vec3 blendedColor = getBlockBlend(blockColor, color.rgb);\n    color = vec4(mix(color.rgb, blendedColor, alpha), max(color.a, alpha));\n    remainingAlpha *= 1.0 - alpha;\n\n    if (remainingAlpha < 0.015) {\n      break;\n    }\n  }\n\n  return color;\n}\n\nvec4 renderCircularBlocks(vec2 uv, vec4 baseColor, float aspect, float time) {\n  vec4 color = baseColor;\n  int blockCount = clamp(uDensity, 1, MAX_BLOCKS);\n  float countRange = max(float(blockCount - 1), 1.0);\n  float baseSize = mix(0.008, 0.05, uSize);\n  float ringRadius = mix(0.08, 0.55, uSpread);\n  float blurStrength = mix(0.0025, 0.03, uDepthBlur);\n  float skewAspect = exp2((uSkew - 0.5) * 2.4);\n  vec2 circularStretch = vec2(0.45, 1.85);\n  float maxSizeVariance = mix(1.0, 1.9, uVariance);\n  float maxAspectVariance = mix(1.0, 1.6, uVariance);\n  float maxDepthScale = 1.35;\n  float skewBound = max(skewAspect, 1.0 / skewAspect);\n  vec2 maxHalfSize = baseSize * maxSizeVariance * maxDepthScale * circularStretch * skewBound * maxAspectVariance;\n  float radialVariance = ringRadius * 0.45 * uVariance;\n  float remainingAlpha = 1.0;\n  vec2 ringLocal = (uv - uPos) * vec2(aspect, 1.0);\n  float ringDistance = length(ringLocal);\n  float ringAngle = atan(ringLocal.y, ringLocal.x);\n\n  if (abs(ringDistance - ringRadius) > radialVariance + maxHalfSize.x + blurStrength) {\n    return color;\n  }\n\n  for (int i = 0; i < MAX_BLOCKS; i++) {\n    if (i >= blockCount) {\n      break;\n    }\n\n    float fi = float(i) + 1.0;\n    vec2 rnd = hash21(fi * 23.17);\n    float rnd2 = fract((rnd.x + rnd.y) * 12.35731);\n    float rnd3 = fract((rnd.x * 5.731 + rnd.y * 9.137) * 4.17321);\n    float layerDepth = clamp((float(i) + rnd.x * 0.75) / (countRange + 0.75), 0.0, 1.0);\n    float travel = fract(rnd.y + time * mix(0.18, 1.0, layerDepth));\n    float sizeVariance = mix(1.0, mix(0.55, 1.9, rnd2), uVariance);\n    float aspectVariance = mix(1.0, mix(0.65, 1.6, rnd3), uVariance);\n    float depthScale = mix(0.6, 1.35, layerDepth);\n    vec2 stretch = circularStretch;\n\n    stretch *= vec2(skewAspect, 1.0 / skewAspect);\n    stretch *= vec2(aspectVariance, 1.0 / aspectVariance);\n\n    vec2 halfSize = baseSize * sizeVariance * depthScale * stretch;\n    float segmentRadius = max(ringRadius + (rnd3 - 0.5) * radialVariance, halfSize.x + blurStrength);\n    float segmentAngle = travel * TAU;\n    float tangentDistance = angleDelta(ringAngle, segmentAngle) * segmentRadius;\n    float feather = blurStrength * mix(1.0, 0.16, layerDepth);\n\n    if (abs(ringDistance - segmentRadius) > halfSize.x + feather || abs(tangentDistance) > halfSize.y + feather) {\n      continue;\n    }\n\n    float segment = 0.0;\n    if (uAiShape >= 2.0) {\n      segment = length(vec2(ringDistance - segmentRadius, tangentDistance)) - halfSize.x;\n    } else if (uAiShape >= 1.0) {\n      vec2 q = abs(vec2(ringDistance - segmentRadius, tangentDistance)) - (halfSize - halfSize.x);\n      segment = length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - halfSize.x;\n    } else {\n      segment = sdArcSegment(ringDistance, ringAngle, segmentRadius, segmentAngle, halfSize);\n    }\n    float mask = 1.0 - smoothstep(0.0, feather, segment);\n    float alphaDepth = layerDepth * (1.35 - 0.35 * layerDepth);\n    float alpha = mask * mix(0.16, 0.88, alphaDepth);\n    vec3 blockColor = mix(uColor1, uColor2, rnd2);\n    blockColor *= mix(0.72, 1.08, layerDepth);\n    vec3 blendedColor = getBlockBlend(blockColor, color.rgb);\n    color = vec4(mix(color.rgb, blendedColor, alpha), max(color.a, alpha));\n    remainingAlpha *= 1.0 - alpha;\n\n    if (remainingAlpha < 0.015) {\n      break;\n    }\n  }\n\n  return color;\n}\n\nvec4 renderPerspectiveBlocks(vec2 uv, vec4 baseColor, float aspect, float time) {\n  vec4 color = baseColor;\n  int blockCount = clamp(uDensity, 1, MAX_BLOCKS);\n  float countRange = max(float(blockCount - 1), 1.0);\n  float baseSize = mix(0.002, 0.07, uSize);\n  float spread = mix(0.25, 1.25, uSpread);\n  float skewAspect = exp2(((1. - uSkew) - 0.25) * 2.4) * 2.4;\n  float skewBound = max(skewAspect, 1.0 / skewAspect);\n  float focalLength = 1.0;\n  float laneWidth = mix(0.18, 1.18, uLaneWidth);\n  float variance = mix(0.45, 1.15, uVariance);\n  float maxSizeVariance = mix(1.0, 1.9, uVariance);\n  float maxAspectVariance = mix(1.0, 1.6, uVariance);\n  vec2 perspectiveStretch = vec2(0.52, 3.1);\n  vec3 rayOrigin = vec3(0.0, 0.0, 0.0);\n  vec3 rayDir = getRayDirection(uv, aspect, focalLength);\n  float perspectiveCenter = (uPos.y - 0.5) * 5.2;\n  float maxCrossOffset = mix(0.08, 2.6, spread) * variance * 0.5;\n  float maxPlaneThickness = baseSize * mix(1.1, 2.6, maxSizeVariance);\n  float maxPlaneLength = baseSize * mix(5.0, 13.0, maxSizeVariance) * 3.2;\n  vec2 maxPlaneHalfSize = vec2(maxPlaneThickness, maxPlaneLength) * perspectiveStretch * skewBound * maxAspectVariance;\n  float maxFarDepth = 5.4 + maxPlaneLength * perspectiveStretch.y * 0.42 * 2.5;\n  vec3 volumeMin = vec3(\n    -2.6,\n    perspectiveCenter - maxCrossOffset - maxPlaneHalfSize.x,\n    -maxPlaneHalfSize.y * 2.0 - baseSize * 2.0\n  );\n  vec3 volumeMax = vec3(\n    2.6,\n    perspectiveCenter + maxCrossOffset + maxPlaneHalfSize.x,\n    maxFarDepth + maxPlaneHalfSize.y\n  );\n  float nearestHit = 1e9;\n  float secondHit = 1e9;\n  float nearestNearFactor = 0.0;\n  float secondNearFactor = 0.0;\n  float nearestHitDepth = 1.0;\n  float secondHitDepth = 1.0;\n  float nearestFarDepth = 1.0;\n  float secondFarDepth = 1.0;\n  float nearestRnd = 0.0;\n  float secondRnd = 0.0;\n  vec2 nearestLocal = vec2(0.0);\n  vec2 secondLocal = vec2(0.0);\n  vec2 nearestHalfSize = vec2(1.0);\n  vec2 secondHalfSize = vec2(1.0);\n  bool hasHit = false;\n  bool hasSecondHit = false;\n\n  if (!intersectAABB(rayOrigin, rayDir, volumeMin, volumeMax)) {\n    return color;\n  }\n\n  for (int i = 0; i < MAX_BLOCKS; i++) {\n    if (i >= blockCount) {\n      break;\n    }\n\n    float fi = float(i) + 1.0;\n    vec2 rnd = hash21(fi * 23.17);\n    float rnd2 = fract((rnd.x + rnd.y) * 12.35731);\n    float rnd3 = fract((rnd.x * 5.731 + rnd.y * 9.137) * 4.17321);\n    float layerDepth = clamp((float(i) + rnd.x * 0.75) / (countRange + 0.75), 0.0, 1.0);\n    float travel = fract(rnd.y + time * mix(0.18, 1.0, layerDepth));\n    float nearTravel = travel;\n    float sizeVariance = mix(1.0, mix(0.55, 1.9, rnd2), uVariance);\n    float aspectVariance = mix(1.0, mix(0.65, 1.6, rnd3), uVariance);\n    float side = mix(-1.0, 1.0, step(0.5, rnd2));\n    float laneOffset = side * mix(laneWidth, 2.6, rnd.x);\n    float crossOffset = perspectiveCenter + (rnd3 - 0.5) * mix(0.08, 2.6, spread) * variance;\n    float planeThickness = baseSize * mix(1.1, 2.6, sizeVariance);\n    float planeLength = baseSize * mix(5.0, 13.0, sizeVariance) * mix(1.15, 3.2, rnd2);\n    float planeOffset = laneOffset;\n    vec2 planeHalfSize = vec2(planeThickness, planeLength);\n\n    planeHalfSize *= perspectiveStretch;\n    planeHalfSize *= vec2(skewAspect, 1.0 / skewAspect);\n    planeHalfSize *= vec2(aspectVariance, 1.0 / aspectVariance);\n\n    float sizeDepthBoost = planeLength * perspectiveStretch.y * 0.42;\n    float farDepth = 5.4 + sizeDepthBoost * 2.5;\n    float nearDepth = -planeHalfSize.y - baseSize * 2.0;\n    float depth = mix(farDepth, nearDepth, nearTravel);\n    vec2 planeCenter = vec2(crossOffset, depth);\n\n// AI edit: restored shape logic\n    float tHit;\n    vec2 hitLocal;\n    bool hit = false;\n    if (uAiShape >= 2.0) {\n      hit = intersectSidePlane(rayOrigin, rayDir, planeOffset, planeCenter, vec2(planeHalfSize.x), false, tHit, hitLocal);\n      if (hit && length(hitLocal) > planeHalfSize.x) hit = false;\n    } else if (uAiShape >= 1.0) {\n      hit = intersectSidePlane(rayOrigin, rayDir, planeOffset, planeCenter, planeHalfSize, false, tHit, hitLocal);\n      if (hit) {\n        vec2 q = abs(hitLocal) - (planeHalfSize - planeHalfSize.x);\n        if (q.y > 0.0 && length(vec2(q.x, q.y)) > planeHalfSize.x) hit = false;\n      }\n    } else {\n      hit = intersectSidePlane(rayOrigin, rayDir, planeOffset, planeCenter, planeHalfSize, false, tHit, hitLocal);\n    }\n\n    if (hit) {\n      if (tHit < nearestHit) {\n        secondHit = nearestHit;\n        secondNearFactor = nearestNearFactor;\n        secondHitDepth = nearestHitDepth;\n        secondFarDepth = nearestFarDepth;\n        secondRnd = nearestRnd;\n        secondLocal = nearestLocal;\n        secondHalfSize = nearestHalfSize;\n        hasSecondHit = hasHit;\n\n        nearestHit = tHit;\n        nearestNearFactor = nearTravel;\n        nearestHitDepth = planeCenter.y + hitLocal.y;\n        nearestFarDepth = farDepth;\n        nearestRnd = rnd2;\n        nearestLocal = hitLocal;\n        nearestHalfSize = planeHalfSize;\n        hasHit = true;\n      } else if (tHit < secondHit) {\n        secondHit = tHit;\n        secondNearFactor = nearTravel;\n        secondHitDepth = planeCenter.y + hitLocal.y;\n        secondFarDepth = farDepth;\n        secondRnd = rnd2;\n        secondLocal = hitLocal;\n        secondHalfSize = planeHalfSize;\n        hasSecondHit = true;\n      }\n    }\n  }\n\n  if (hasHit) {\n    if (hasSecondHit) {\n      float secondFarFade = 1.0 - smoothstep(0.85, secondFarDepth, secondHitDepth);\n      float secondAlphaDepth = secondNearFactor * (1.35 - 0.35 * secondNearFactor);\n      float secondAlpha = secondFarFade * mix(0.3, 0.88, secondAlphaDepth);\n      vec3 secondColor = mix(uColor1, uColor2, secondRnd);\n      secondColor *= mix(0.66, 1.0, secondNearFactor);\n      color = getBlendedColor(color, secondColor, secondAlpha);\n    }\n\n    float farFade = 1.0 - smoothstep(0.85, nearestFarDepth, nearestHitDepth);\n    float alphaDepth = nearestNearFactor * (1.35 - 0.35 * nearestNearFactor);\n    float alpha = farFade * mix(0.42, 1.0, alphaDepth);\n    vec3 blockColor = mix(uColor1, uColor2, nearestRnd);\n    blockColor *= mix(0.7, 1.1, nearestNearFactor);\n    color = getBlendedColor(color, blockColor, alpha);\n  }\n\n  return color;\n}\n\nvoid main() {\n  vec2 uv = vTextureCoord;\n  vec4 color = texture(uTexture, uv);\n  float aspect = uResolution.x / max(uResolution.y, EPSILON);\n  vec2 rotatedUv = uv;\n\n  // #ifelseopen\n  if(uAngle != 0.0) {\n    rotatedUv = rotateAround(uv, uPos, uAngle * -6.28318530718, aspect);\n  }\n  // #ifelseclose\n\n  float time = uTime * 0.01;\n\n  switch (uDirection) {\n    case 1: color = renderPerspectiveBlocks(rotatedUv, color, aspect, time); break;\n    case 2: color = renderCircularBlocks(rotatedUv, color, aspect, time); break;\n    default: color = renderFlatBlocks(rotatedUv, color, aspect, time); break;\n  }\n\n  // #ifelseopen\n  if(uIsMask == 1) {\n    vec2 maskPos = mix(vec2(0), (uMousePos - 0.5), uParentTrackMouse);\n    vec4 maskColor = texture(uMaskTexture, vTextureCoord - maskPos);\n    color = color * (maskColor.a * maskColor.a);\n  }\n  // #ifelseclose\n\n  fragColor = color;\n\n}","vertexShader":"#version 300 es\nprecision mediump float;\n\nin vec3 aVertexPosition;\nin vec2 aTextureCoord;\n\nuniform mat4 uMVMatrix;\nuniform mat4 uPMatrix;\nuniform mat4 uTextureMatrix;\n\nout vec2 vTextureCoord;\nout vec3 vVertexPosition;\n\nvoid main() {\n  gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);\n  vTextureCoord = (uTextureMatrix * vec4(aTextureCoord, 0.0, 1.0)).xy;\n}","downSample":null,"includeBg":false,"needsPreviousFrame":null,"pingPong":false,"passDescription":""}],"speed":1,"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false,"passes":[]},"id":"03902aa2-e436-4d4e-8484-aa14921831c3","publicId":"custom"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"sphere","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nin vec3 vVertexPosition;\nin vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform vec2 uMousePos;\nuniform vec2 uResolution;\nconst float STEPS = 16.0;\nconst float PI = 3.14159265359;vec3 chromAb(vec2 st, float angle, float amount, float blend) {\nfloat aspect = uResolution.x/uResolution.y;\nfloat rot = angle * 360.0 * PI / 180.0;\nvec2 aber = amount * vec2(0.1 * sin(rot) * aspect, 0.1 * cos(rot));\naber *= distance(st, vec2(0.5)) * 2.0;vec4 r = vec4(0);\nvec4 b = vec4(0);\nvec4 g = vec4(0);float iStep = 1.0 / STEPS;for(float i = 1.0; i <= STEPS; i++) {\nvec2 off = aber * (i * iStep);\nr += texture(uTexture, st - off) * iStep;\nb += texture(uTexture, st + off) * iStep;\n}for (float i = 1.0; i <= STEPS; i++) {\nvec2 off = aber * ((i * iStep) - 0.5);\ng += texture(uTexture, st + off) * iStep;\n}return vec3(r.r, g.g, b.b);\n}vec2 sphereTx(float u, float v, float cx, float cy, float r, float tau) {\nfloat aspect = uResolution.x/uResolution.y;\nu -= cx;\nv -= cy;float s = sqrt(u * u + v * v);\nif (s > r)\nreturn vec2((u + cx) / aspect, v + cy);float z = sqrt(r * r - s * s);float ua = (1.0 - (1.0 / tau)) * asin(u / r);\nfloat va = (1.0 - (1.0 / tau)) * asin(v / r);u = cx + z * sin(ua);\nv = cy + z * sin(va);return vec2(u/aspect, v);\n}float circularIn(float t) {\nreturn 1.0 - sqrt(1.0 - t * t);\n}vec2 sLens(vec2 sc, vec2 p, float r, float mx) {\nreturn sphereTx(\nmix(sc.x, mx - sc.x, 0.0000),\nmix(sc.y, 1. - sc.y, 0.0000),\nmix(p.x, mx - p.x, 0.0000),\nmix(p.y, 1. - p.y, 0.0000),\nr / 2., 1. + 1.0000 * 9.\n);\n}vec2 getCoords(vec2 uv, vec2 p, float r, float mx, float aspect) {\nvec2 sc = uv;\nsc.x *= aspect;sc = sLens(sc, p, r, mx);return clamp((sc - 0.5) + 0.5, 0.0, 1.0);\n}vec2 sc;\nfloat inside;\nfloat insideA;\nfloat dPos;vec2 distortUV(vec2 uv) {\nfloat aspect = uResolution.x / uResolution.y;\nfloat mx = aspect;\nvec2 p = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos - 0.5), 0.0000);\np.x *= aspect;\nfloat r = 4.3000;sc = getCoords(uv, p, r, mx, aspect);vec2 uvA = uv;\nuvA.x *= aspect;\ndPos = distance(uvA, p);float edge = 0.001;\ninside = 1.0 - smoothstep(r / 2.0 - edge, r / 2.0, dPos);\ninsideA = 1.0 - smoothstep(r / 2.0 + 0.002 - edge, r / 2.0 + 0.002, dPos);return mix(uv, sc, inside);\n}out vec4 fragColor;\nvoid main() {\nvec2 uv = vTextureCoord;\nvec2 st = distortUV(uv);\nvec4 color = texture(uTexture, st);\nvec4 base = texture(uTexture, uv);\nvec4 sph = vec4(0.0);\nsph.rgb = chromAb(sc, atan(sc.y, sc.x), dPos * 0.2500, 1.0);\nsph.a = 1.0;\ncolor = mix(base, sph, inside);float r = 4.3000 * uResolution.x / max(uResolution.x, uResolution.y);\ncolor.rgb += vec3((1.0000 - 0.5) * 2.) * mix(0., circularIn(smoothstep(0., r, dPos)), inside);\nfragColor = 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}"],"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"ba9bb988-cbbc-427e-b0b3-33e4b7aee02e","publicId":"lens_distort"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"outline","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nin vec2 vTextureCoord;uniform sampler2D uTexture;\nuniform vec2 uResolution;\nvec3 blend (int blendMode, vec3 src, vec3 dst) {\nreturn vec3((src.x <= 0.5) ? (dst.x - (1.0 - 2.0 * src.x) * dst.x * (1.0 - dst.x)) : (((src.x > 0.5) && (dst.x <= 0.25)) ? (dst.x + (2.0 * src.x - 1.0) * (4.0 * dst.x * (4.0 * dst.x + 1.0) * (dst.x - 1.0) + 7.0 * dst.x)) : (dst.x + (2.0 * src.x - 1.0) * (sqrt(dst.x) - dst.x))), (src.y <= 0.5) ? (dst.y - (1.0 - 2.0 * src.y) * dst.y * (1.0 - dst.y)) : (((src.y > 0.5) && (dst.y <= 0.25)) ? (dst.y + (2.0 * src.y - 1.0) * (4.0 * dst.y * (4.0 * dst.y + 1.0) * (dst.y - 1.0) + 7.0 * dst.y)) : (dst.y + (2.0 * src.y - 1.0) * (sqrt(dst.y) - dst.y))), (src.z <= 0.5) ? (dst.z - (1.0 - 2.0 * src.z) * dst.z * (1.0 - dst.z)) : (((src.z > 0.5) && (dst.z <= 0.25)) ? (dst.z + (2.0 * src.z - 1.0) * (4.0 * dst.z * (4.0 * dst.z + 1.0) * (dst.z - 1.0) + 7.0 * dst.z)) : (dst.z + (2.0 * src.z - 1.0) * (sqrt(dst.z) - dst.z))));\n}\nvec4 applyLayerMix(vec4 color, vec4 bg, float amount) {\ncolor.rgb = mix(bg.rgb, color.rgb, amount);\ncolor.a = max(bg.a, amount);\nreturn color;\n}out vec4 fragColor;float luma(vec3 c) {\nreturn dot(c, vec3(0.299, 0.587, 0.114));\n}float interleavedGradientNoise(vec2 st) {\nreturn fract(52.9829189 * fract(dot(st, vec2(0.06711056, 0.00583715))));\n}void main() {\nvec2 uv = vTextureCoord;float thickness = 0.1100;vec2 pixel = (1.0 / uResolution) * max(thickness * 4.0, 0.001);\nfloat noise = interleavedGradientNoise(gl_FragCoord.xy);pixel *= mix(1.0, noise, 0.1);float tl = luma(texture(uTexture, uv + pixel * vec2(-1, -1)).rgb);\nfloat t = luma(texture(uTexture, uv + pixel * vec2( 0, -1)).rgb);\nfloat tr = luma(texture(uTexture, uv + pixel * vec2( 1, -1)).rgb);\nfloat l = luma(texture(uTexture, uv + pixel * vec2(-1, 0)).rgb);\nfloat r = luma(texture(uTexture, uv + pixel * vec2( 1, 0)).rgb);\nfloat bl = luma(texture(uTexture, uv + pixel * vec2(-1, 1)).rgb);\nfloat b = luma(texture(uTexture, uv + pixel * vec2( 0, 1)).rgb);\nfloat br = luma(texture(uTexture, uv + pixel * vec2( 1, 1)).rgb);float gx = -tl - 2.0 * l - bl + tr + 2.0 * r + br;\nfloat gy = -tl - 2.0 * t - tr + bl + 2.0 * b + br;\nfloat edge = length(vec2(gx, gy));float soft = max(0.6000 * 0.5, 0.001);\nedge = smoothstep(0.2600 - soft, 0.2600 + soft, edge);\nedge *= (0.6500 * 2.0);vec4 scene = texture(uTexture, uv);\nvec3 outline = vec3(1, 1, 1) * edge;\nvec3 blended = outline;blended = blend(12, outline, scene.rgb);vec4 col = applyLayerMix(vec4(blended, 1.0), scene, 1.0000);\nfragColor = col;}"],"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}"],"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"efb32510-ea48-49ee-ae66-31d5e708a2a3","publicId":"outline"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"godrays","usesPingPong":false,"texture":false,"animating":false,"mouseMomentum":0,"mouseSpring":0,"isMask":0,"compiledFragmentShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision highp float;\nprecision highp int;in vec3 vVertexPosition;\nin vec2 vTextureCoord;uniform sampler2D uTexture;uniform vec2 uMousePos;\nuniform vec2 uResolution;const float MAX_ITERATIONS = 32.0;float interleavedGradientNoise(vec2 st) {\nreturn fract(52.9829189 * fract(dot(st, vec2(0.06711056, 0.00583715))));\n}vec4 godRays(vec2 st) {\nvec3 color = vec3(0);\nfloat decay = mix(0.89, 0.965, 1.0000);\nvec2 pos = vec2(0.5, 0.5) - mix(vec2(0), (vec2(1. - uMousePos.x, 1. - uMousePos.y) - 0.5), 0.0000);\nfloat weight = 1.0;\nvec2 stepDir = (pos - st) / MAX_ITERATIONS * (0.25 + min(1., 1.0000)) * 0.75;\nfloat noise = interleavedGradientNoise(st * uResolution);\nvec2 sampleUv = st + stepDir * noise;\nvec2 perpDir = vec2(-stepDir.y, stepDir.x);\nfloat intensity = 2.8 * 1.0000;for (float i = 0.0; i < MAX_ITERATIONS; i++) {\nfloat theta = i/MAX_ITERATIONS;\nsampleUv += stepDir + (perpDir * theta * sin((noise * 0.25) * (1.0 + theta) * 50.0)) * 0.0400 * 0.25;\nvec4 samp = texture(uTexture, sampleUv);\nfloat lum = dot(samp.rgb, vec3(0.299, 0.587, 0.114));\nfloat thresh = smoothstep(0.0000 - 0.1, 0.0000, lum);\ncolor += samp.rgb * thresh * weight * intensity;\nweight *= decay;\nif(weight < 0.05) break;\n}\nreturn vec4(color / MAX_ITERATIONS, 1.0);\n}out vec4 fragColor;void main() {\nvec2 uv = vTextureCoord;\nvec4 bg = texture(uTexture, uv);if(1.0000 <= 0.01) {\nvec4 color = bg;\nfragColor = color;return;\n}vec4 rays = godRays(uv);\nrays.rgb *= vec3(1, 1, 1);\nvec4 color = vec4(bg.rgb + rays.rgb, bg.a + rays.r);\nfragColor = 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}"],"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"7e57d97d-0d67-42a6-9ab0-e3bafb8a6b1e","publicId":"god_rays"}],"options":{"name":"Moving Into (Remix)","fps":60,"dpi":1.5,"scale":1,"includeLogo":false,"isProduction":false,"flatten":false},"version":"2.1.12","id":"UvzUiSm8zBSeI3UdjYnL"}
canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.Stars: 198kUpdated Claude CodeCodexVerifiedInstall