chuspeeism/dashi-ppt-skill / skills/dashi-ppt
dashi-ppt
Flagged制作 PPT、演示文稿、幻灯片、汇报材料时使用。Dashi PPT 基于预置视觉主题组合页面,生成可离线打开、可在浏览器编辑的 HTML 演示,支持导出 PPTX / PDF 文件。
project/assets/unicorn/tech_background_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":"0d856f88-b0ea-42cc-8f2f-130f88607cc0","publicId":"gradient"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"twodlight","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 vec2 vTextureCoord;uniform sampler2D uTexture;uniform vec2 uMousePos;\nuniform vec2 uResolution;uvec2 pcg2d(uvec2 v) {\nv = v * 1664525u + 1013904223u;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nv ^= v >> 16;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nreturn v;\n}float randFibo(vec2 p) {\nuvec2 v = floatBitsToUint(p);\nv = pcg2d(v);\nuint r = v.x ^ v.y;\nreturn float(r) / float(0xffffffffu);\n}float deband() {\nreturn (randFibo(gl_FragCoord.xy) - 0.5) / 255.0;\n}const float EPSILON = 0.0001;\nconst int MAX_STEPS = 20;\nconst float MAX_STEPS_F = 20.0;\nconst float STEP_SCALE = 64.0 / 20.0;\nconst float AMBIENT_STEP = 0.01 * STEP_SCALE;\nconst float SOURCE_ACCUM_GAIN = 0.05;\nconst float SOURCE_RADIUS_SCALE = 0.0;out vec4 fragColor;vec3 Tonemap_tanh(vec3 x) {\nx = clamp(x, -40.0, 40.0);\nreturn (exp(x) - exp(-x)) / (exp(x) + exp(-x));\n}float SHADER_COST_RAYMARCH_HINT(float value) {\nreturn value;\n}float interleavedGradientNoise(vec2 st) {\nreturn fract(52.9829189 * fract(dot(st, vec2(0.06711056, 0.00583715))));\n}void main() {\nvec4 sceneColor = texture(uTexture, vTextureCoord);\nvec2 aspectRatio = uResolution / min(uResolution.x, uResolution.y);\nvec2 uv = vTextureCoord * aspectRatio;\nvec2 pos = vec2(0.501530781870759, 0.6420565576064312) + mix(vec2(0), (uMousePos-0.5), 0.0000);\npos = pos * aspectRatio;\nvec2 lightDelta = pos - uv;\nfloat lightDist = length(lightDelta);if(lightDist <= EPSILON) {\nvec3 lightColor = Tonemap_tanh(sceneColor.rgb * vec3(1, 1, 1) + vec3(1, 1, 1) * (0.25 + 1.0000 * 0.5) * SOURCE_ACCUM_GAIN);\nfloat dither = deband();\nlightColor += dither;\nvec4 color = vec4(lightColor, 1.0);\nfragColor = color;return;\n}vec2 lightDir = lightDelta / lightDist;\nvec2 lightPerp = vec2(-lightDir.y, lightDir.x);\nbool hitObject = false;\nvec2 marchPos = uv;\nfloat rayDist = 0.;\nfloat jitter = interleavedGradientNoise(vTextureCoord * uResolution) - 0.5;\nfloat diffusion = 0.5400*0.125;\nfloat cappedScale = min(1.8, 0.8100);\nfloat ambient = 0.;\nfloat sourceGlow = 1.0 - smoothstep(0.0, 0.045 + cappedScale * 0.08, lightDist);\nfloat sourceRadius = (0.015 + cappedScale * 0.06) * SOURCE_RADIUS_SCALE;\nfloat sourceAccum = (SOURCE_ACCUM_GAIN * 1.0000) * (0.015 + 1.0000 * 0.12) / max(lightDist * lightDist, sourceRadius * sourceRadius);\nvec2 offset = lightPerp * jitter * diffusion;\nfloat baseStepLength = 0.01 * max(cappedScale, 0.05) * STEP_SCALE;\nfloat stepLength = min(baseStepLength, max(lightDist / (MAX_STEPS_F * 0.8), EPSILON));\nvec2 step = (lightDir + offset) * stepLength;\nmarchPos += step * (jitter + 0.5);\nvec3 prevColor = vec3(0.0);for(int i = 0; i < MAX_STEPS; i++) {\nfloat traveled = length(marchPos - uv);\nfloat dist = SHADER_COST_RAYMARCH_HINT(traveled);if (dist >= lightDist) {\nbreak;\n}marchPos += step * mix(dist, 1., 0.4);\nvec4 texColor = texture(uTexture, marchPos / aspectRatio);rayDist = dist / lightDist;vec3 color = texColor.rgb;float colorDiff = length(color - prevColor);\nbool hit = colorDiff > 0.2500;\nif (hit && !hitObject) {\nhitObject = true;\nprevColor = color;\nif(dist < lightDist) {\nbreak;\n}\n} else {\nambient -= AMBIENT_STEP;\n}\n}rayDist = mix(rayDist * lightDist, rayDist, 1.0000 * 1.5);\nfloat lightMix = max(0.0, 1. - rayDist + ambient * 1.0000);\nvec3 lightColor = mix(vec3(1, 1, 1), sceneColor.rgb * vec3(1, 1, 1), lightMix);\nlightColor += vec3(1, 1, 1) * (sourceGlow * (0.04 + 1.0000 * 0.1) + sourceAccum);\nlightColor = Tonemap_tanh(sceneColor.rgb * lightColor);\nfloat dither = deband();\nlightColor += dither;\nvec4 color = vec4(lightColor, 1.);\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":"738c0223-a0fb-43bb-bdb4-a0dc036f1a63","publicId":"2d_light"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"beam","usesPingPong":false,"texture":false,"animating":true,"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 vec2 vTextureCoord;uniform sampler2D uTexture;uniform float uTime;uniform vec2 uMousePos;\nuniform vec2 uResolution;\nvec3 blend (int blendMode, vec3 src, vec3 dst) {\nreturn src + dst;\n}vec4 applyLayerMix(vec4 color, vec4 bg, float amount) {\ncolor.rgb = mix(bg.rgb, color.rgb, amount);\ncolor.a = max(bg.a, amount);\nreturn color;\n}uvec2 pcg2d(uvec2 v) {\nv = v * 1664525u + 1013904223u;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nv ^= v >> 16;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nreturn v;\n}float randFibo(vec2 p) {\nuvec2 v = floatBitsToUint(p);\nv = pcg2d(v);\nuint r = v.x ^ v.y;\nreturn float(r) / float(0xffffffffu);\n}float deband() {\nreturn (randFibo(gl_FragCoord.xy) - 0.5) / 255.0;\n}const float TAU = 6.28318530718;vec3 Tonemap_tanh(vec3 x) {\nx = clamp(x, -40.0, 40.0);\nreturn (exp(x) - exp(-x)) / (exp(x) + exp(-x));\n}out vec4 fragColor;const float PI = 3.14159265359;\nconst float TWO_PI = 2.0 * PI;float luma(vec3 color) {\nreturn dot(color, vec3(0.299, 0.587, 0.114));\n}mat2 rot(float a) {\nreturn mat2(cos(a),-sin(a),sin(a),cos(a));\n}float sdBox(vec2 p, vec2 b) {\nvec2 q = abs(p)-b;\nreturn length(max(q,0.0)) + min(max(q.x,q.y),0.0);\n}float sdEquilateralTriangle(vec2 p, float r ) {\nconst float k = sqrt(3.0);\np.x = abs(p.x) - r;\np.y = p.y + r/k;\nif( p.x+k*p.y>0.0 ) p = vec2(p.x-k*p.y,-k*p.x-p.y)/2.0;\np.x -= clamp( p.x, -2.0*r, 0.0 );\nreturn -length(p)*sign(p.y);\n}float sdStar4(vec2 p, float r) {\nvec2 q = abs(p * 1./r * 0.15);\nr = max(r, 0.001);\nfloat power = 0.4;\nvec2 pn = q / r;\nfloat d = pow(pn.x, power) + pow(pn.y, power);\nreturn max(1. - 1./d, 0.0);\n}float sdDiamond(vec2 p, float r) {\np = abs(p);\nreturn (p.x + p.y - r) * 0.70710678118;\n}float sdPentagon( vec2 p, float r ) {\nconst vec3 k = vec3(0.809016994, 0.587785252, 0.726542528);\np.x = abs(p.x);\np -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y);\np -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y);\np -= vec2(clamp(p.x,-r*k.z,r*k.z),r);\nreturn length(p)*sign(p.y);\n}float sdHexagon( vec2 p, float r ) {\nconst vec3 k = vec3(-0.866025404, 0.5, 0.577350269);\np = abs(p);\np -= 2.0*min(dot(k.xy,p),0.0)*k.xy;\np -= vec2(clamp(p.x, -k.z*r, k.z*r), r);\nreturn length(p)*sign(p.y);\n}float sdOctagon( vec2 p, float r ) {\nconst vec3 k = vec3(-0.9238795325, 0.3826834323, 0.4142135623 );\np = abs(p);\np -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y);\np -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y);\np -= vec2(clamp(p.x, -r*k.z, r*k.z), r);\nreturn length(p)*sign(p.y);\n}float sdVesica(vec2 p, float r) {\nfloat d = r;\nvec2 c1 = vec2(-d * 0.5, 0.0);\nvec2 c2 = vec2( d * 0.5, 0.0);\nreturn max(length(p - c1) - r, length(p - c2) - r);\n}float sdArchway(vec2 p, float r_param) {\np.y += 0.06;\nvec2 rect_half_extents = vec2(r_param, r_param);\nfloat d_rect = sdBox(p, rect_half_extents);vec2 circle_center = vec2(0.0, r_param);\nfloat d_disk = length(p - circle_center) - r_param;\nfloat d_plane_above_rect_top = r_param - p.y;\nfloat d_semicircle = max(d_disk, d_plane_above_rect_top);return min(d_rect, d_disk);\n}float sdX(vec2 p, float w) {\np = abs(p);\nfloat d1 = sdBox(rot(PI/4.0) * p, vec2(w, w * 0.3));\nfloat d2 = sdBox(rot(-PI/4.0) * p, vec2(w, w * 0.3));\nreturn min(d1, d2);\n}float sdRing(vec2 p, float r1, float r2) {\nreturn abs(length(p) - r1) - r2;\n}float getSDFShape(vec2 p, float r, int shapeType) {\nswitch(shapeType) {\ncase 6: return sdEquilateralTriangle(p, r);\ncase 7: return sdDiamond(p, r); break;\ncase 8: return sdPentagon(p, r); break;\ncase 9: return sdHexagon(p, r); break;\ncase 10: return sdOctagon(p, r); break;\ncase 11: return sdVesica(p, r); break;\ncase 12: return sdArchway(p, r * 0.75); break;\ncase 13: return sdX(p, r); break;\ncase 14: return sdRing(p, r, r * 0.2); break;\ncase 17: return sdStar4(p, r); break;\ndefault: return sdEquilateralTriangle(p, r);\n}\n}float drawSDFShape(vec2 uv, vec2 center, float scale, int shapeType, vec2 resolution, float skewVal, float angleVal, float thickness) {\nfloat aspect = resolution.x/resolution.y;\nuv.x *= aspect;\ncenter.x *= aspect;\nvec2 skew = vec2(skewVal, 1. - skewVal) * 2.;\nuv = uv * rot(angleVal * TWO_PI) * skew;\ncenter = center * rot(angleVal * TWO_PI) * skew;\nvec2 p = uv - center;\nfloat r = scale * 0.4;\nfloat sdf = getSDFShape(p, r, shapeType);\nfloat t = thickness * 0.8;\nfloat glow = t / max(0.0001, 1.0 - smoothstep(0.12, 0.01, abs(sdf) + 0.02));\nreturn glow * pow(1.0-abs(sdf), 3.0);\n}float getBeam(vec2 uv, vec2 pos, float radius, float angleVal, float skewVal, float thickness, float time, float phaseVal, vec2 resolution) {\nreturn drawSDFShape(uv, pos, radius, 13, resolution, skewVal, angleVal, thickness);\n}void main() {\nvec2 uv = vTextureCoord;\nvec4 bg = texture(uTexture, uv);\nvec2 pos = vec2(0.4319310515853394, 0.6291276588115291) + mix(vec2(0), (uMousePos-0.5), 0.0000);\nfloat beam = getBeam(uv, pos, 0.7540, 0.7479, 0.5000, 0.5000, uTime, 0.5000, uResolution);\nvec3 beamColor = beam * vec3(0.4, 0.1, 1);\nfloat ssBeam = beam / (beam + 1.0);\nbeamColor = mix(beamColor, vec3(0.4, 0.1, 1), mix(1.0, ssBeam, 0.0000)) * beam;float dither = deband();\nvec3 result = Tonemap_tanh(beamColor);\nfloat lum = luma(beamColor);\nresult += dither;float layerMix = 1.0000;\nvec4 color;vec3 blended = blend(1, result, bg.rgb);\ncolor = applyLayerMix(vec4(blended, 1.0), bg, layerMix);\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}"],"speed":0.25,"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"6600cc23-b655-4252-b0e1-c8f71724ad74","publicId":"beam"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"liquify","usesPingPong":false,"texture":false,"animating":true,"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 mediump float;in vec3 vVertexPosition;\nin vec2 vTextureCoord;uniform float uTime;\nuniform sampler2D uTexture;uniform vec2 uMousePos;\nuniform vec2 uResolution;float ease (int easingFunc, float t) {\nreturn t;\n}const float PI = 3.14159265359;mat2 rot(float a) {\nreturn mat2(cos(a), -sin(a), sin(a), cos(a));\n}vec2 liquify(vec2 st, float dist) {\nfloat aspectRatio = uResolution.x / uResolution.y;\nvec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos - 0.5), 0.0000);\nvec2 drift = vec2(0, 0.0000 * uTime * 0.0125) * rot(0.0000 * -2. * PI);pos += drift;\nvec2 skew = mix(vec2(1), vec2(1, 0), 0.0000);\nst -= pos;\nst.x *= aspectRatio;\nst = st * rot(0.0000 * 2. * PI);\nst *= skew;\nfloat freq = (5.0 * (0.0600 + 0.1));\nfloat t = uTime * 0.025;float amplitude = 0.6700 * mix(0.2, 0.2/(0.0600 + 0.05), 0.25) * dist;for (float i = 1.0; i <= 5.0; i++) {\nst = st * rot(i / 5. * PI * 2.);\nfloat ff = i * freq;\nst.x += amplitude * cos(ff * st.y + t);\nst.y += amplitude * sin(ff * st.x + t);\n}st /= skew;st = st * rot(0.0000 * -2. * PI);\nst.x /= aspectRatio;\nst += pos;return st;\n}vec2 caLiquifiedUV;\nvec2 caOriginalUV;out vec4 fragColor;vec2 distortUV(vec2 uv) {\nfloat aspectRatio = uResolution.x / uResolution.y;\nvec2 mPos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos - 0.5), 0.0000);\nfloat dist = ease(0, max(0., 1. - distance(uv * vec2(aspectRatio, 1), mPos * vec2(aspectRatio, 1)) * 4. * (1. - 1.0000)));if (dist <= 0.001) return uv;\nif (0.6700 <= 0.001) return uv;\nif (0.5000 <= 0.001) return uv;vec2 liquifiedUV = liquify(uv, dist);\ncaLiquifiedUV = liquifiedUV;\ncaOriginalUV = uv;\nreturn mix(uv, liquifiedUV, 0.5000);\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 distortedUV = distortUV(uv);\nvec4 color = texture(uTexture, distortedUV);vec2 dir = caLiquifiedUV - caOriginalUV;\nfloat distanceUv = length(dir);\nif (distanceUv > 0.001) {\nvec2 normalizedUv = dir / distanceUv;\nfloat chromAbb = 1.0000 * 0.5;\nvec2 offsetR = caLiquifiedUV + chromAbb * normalizedUv * distanceUv;\nvec2 offsetB = caLiquifiedUV - chromAbb * normalizedUv * distanceUv;\nvec4 colorR = texture(uTexture, mix(caOriginalUV, offsetR, 0.5000));\nvec4 colorB = texture(uTexture, mix(caOriginalUV, offsetB, 0.5000));\ncolor = vec4(colorR.r, color.g, colorB.b, colorR.a * color.a * colorB.a);\n}\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}"],"speed":0.25,"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"ef7885df-7c94-4e01-90d8-c838a351450d","publicId":"liquify"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"mondrian","usesPingPong":false,"texture":false,"animating":true,"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 sampler2D uTexture;\nuniform float uTime;uniform vec2 uMousePos;\nuniform vec2 uResolution;float ease (int easingFunc, float t) {\nreturn t;\n}float getExponentialWeight(int index) {\nswitch(index) {\ncase 0: return 1.0000000000;\ncase 1: return 0.7165313106;\ncase 2: return 0.5134171190;\ncase 3: return 0.3678794412;\ncase 4: return 0.2636050919;\ncase 5: return 0.1888756057;\ncase 6: return 0.1353352832;\ncase 7: return 0.0969670595;\ncase 8: return 0.0694877157;\ncase 9: return 0.0497870684;\ncase 10: return 0.0356739933;\ncase 11: return 0.0255615332;\ncase 12: return 0.0183156389;\ncase 13: return 0.0131237287;\ncase 14: return 0.0094035626;\ncase 15: return 0.0067379470;\ndefault: return 0.0;\n}\n}out vec4 fragColor;const int ITERATIONS = 16;\nconst float TAU = 6.28318530718;\nconst float REFERENCE_SHORT_SIDE = 1000.0;mat2 rot(float a) {\nfloat s = sin(a);\nfloat c = cos(a);\nreturn mat2(c, -s, s, c);\n}vec2 perp(vec2 v) {\nreturn vec2(-v.y, v.x);\n}vec2 rotateAround(vec2 point, vec2 center, mat2 rotation, float aspectRatio) {\nvec2 translated = point - center;\ntranslated.x *= aspectRatio;\ntranslated = rotation * translated;\ntranslated.x /= aspectRatio;\nreturn translated + center;\n}vec2 getGridOffset(int index) {\nswitch (index) {\ncase 0: return vec2(-0.22, -0.18);\ncase 1: return vec2(0.18, -0.24);\ncase 2: return vec2(-0.14, 0.20);\ncase 3: return vec2(0.24, 0.12);\ncase 4: return vec2(-0.30, 0.02);\ncase 5: return vec2(0.08, -0.32);\ncase 6: return vec2(0.30, -0.06);\ncase 7: return vec2(-0.06, 0.30);\ncase 8: return vec2(0.12, 0.26);\ncase 9: return vec2(-0.26, -0.08);\ncase 10: return vec2(0.28, 0.22);\ncase 11: return vec2(-0.18, 0.28);\ncase 12: return vec2(0.04, -0.20);\ncase 13: return vec2(-0.32, 0.14);\ncase 14: return vec2(0.22, -0.14);\ndefault: return vec2(0.0);\n}\n}vec2 pixelateUV(vec2 uv, vec2 anchorPos, float pixelSizePx, vec2 gridOffset) {\nfloat shortSide = max(min(uResolution.x, uResolution.y), 0.0001);\nvec2 scale = uResolution / shortSide;\nfloat pixelSize = pixelSizePx / REFERENCE_SHORT_SIDE;\nvec2 scaledAnchorPos = anchorPos * scale;\nvec2 pixelCoord = floor((((uv * scale) - scaledAnchorPos) / pixelSize) + gridOffset) * pixelSize;\nvec2 sampleCoord = pixelCoord + (vec2(0.5) - gridOffset) * pixelSize + scaledAnchorPos;\nreturn sampleCoord / scale;\n}vec2 distortUV(vec2 uv) {\nif (0.5000 > 0.0001) {\nfloat aspectRatio = uResolution.x / uResolution.y;\nvec2 anchorPos = vec2(0.5, 0.5) + mix(vec2(0.0), (uMousePos - 0.5), 0.0000);\nvec2 mixPos = vec2(0.5, 0.5) + mix(vec2(0.0), (uMousePos - 0.5), 0.0000);\nvec2 accumulatedUv = vec2(0.0);\nfloat accumulatedWeight = 0.0;\nfloat maxPixelSize = 1.0 + 0.5000 * 50.0;\nfloat curvePower = mix(0.0, -0.5, 1.0000);\nmat2 distortionRotation = rot(0.0000 * TAU);\nvec2 rotatedUv = rotateAround(uv, anchorPos, rot(0.0000 * TAU * -1.0), aspectRatio);for (int i = 0; i < ITERATIONS; i++) {\nfloat weight = getExponentialWeight(i);\nfloat curve = pow(getExponentialWeight((ITERATIONS - 1) - i), curvePower);\nfloat pixelSizePx = mix(maxPixelSize, 1.0, curve);\nfloat offsetStrength = mix(0.35, 0.0, curve);\nvec2 baseOffset = getGridOffset(i) * offsetStrength;\nvec2 swayDir = normalize(perp(baseOffset) + vec2(0.00001, 0.0));float swayAmount = 1.0;\nif(uTime > 0.0) {\nswayAmount = sin(uTime * 0.035 + float(i) * 1.6180339) * abs(offsetStrength) * 0.18;\n}\nvec2 gridOffset = baseOffset + swayDir * swayAmount;\nvec2 pixelUv = pixelateUV(rotatedUv, anchorPos, pixelSizePx, gridOffset);accumulatedUv += pixelUv * weight;\naccumulatedWeight += weight;\n}vec2 blurredUv = rotateAround(\naccumulatedUv / max(accumulatedWeight, 0.0001),\nanchorPos,\ndistortionRotation,\naspectRatio\n);\nfloat blendRadius = ease(\n0,\nmax(0.0, 1.0 - distance(blurredUv * vec2(aspectRatio, 1.0), mixPos * vec2(aspectRatio, 1.0)) * 4.0 * (1.0 - 1.0000))\n);return mix(uv, blurredUv, 1.0000 * blendRadius);\n}return uv;\n}void main() {\nvec2 baseUv = vTextureCoord;\nvec2 uv = distortUV(baseUv);\nvec4 color = texture(uTexture, uv);\nvec4 bg = texture(uTexture, baseUv);\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}"],"speed":0.12,"trackMouse":0,"trackAxes":"xy","data":{"depth":false,"uniforms":{},"isBackground":false},"id":"876fcc62-618b-4611-af86-2932654890a3","publicId":"mondrian"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"glyphDither","usesPingPong":false,"texture":{"src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAAoCAYAAAAi24Q0AAAQAElEQVR4AeydCYwVRRPHq/DAW0ARVIzrLaioicZbiGcwSNZAECECBjzQiMQoQoiQRfHWGIwiAQ14ICoGg0QS8QA1HiGGICp4YwTDoYh4Iiofv970fMPb3fdm38719hWh31R3V1XX/Gd6p6a7uqeNiGyzZBjYPWD3gN0Ddg/YPWD3gN0D8d0DOFjb8bT/hoAhYAgYAoZAnhAwWwyBykbAHKzKvn5mvSFgCBgChoAhYAjkEAFzsHJ4UcwkQyAOBEyHIWAIGAKGQHYImIOVHfbWsiFgCFQIAuedd56sXr1atm3b5tLrr78e2XJ4vRw60BVZOCIjOtHt2+H4559/ytixY0tqmDhxomzZssWdFzrQVVKoDIZPP/3UtYFt5SZ0lNF02SJXXnmlLFy4UDZs2CBbt24N7P/rr79k1apVMm3aNOnSpYtk8a9nz57y/PPPy9q1awV7PKbQlFEHT1q2TZ8+PcDH21Ls+Mcff6SGIfc093bYnjT6hzlYTd59VmEIGAKGQOUisNtuu0mvXr0q9wQytPz000+XDz74QGbOnCkXXHCB7L///rLzzjsHFrVt21YOPfRQGT58uHz88ccyevTooC5pYu+993aO3YIFC6R///7SqVMnwR7fLjRl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GSURBVAMAAQ8anqIYD64AAAAASUVORK5CYII=","sampler":"uCustomTexture"},"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 vec3 vVertexPosition;\nin vec2 vTextureCoord;\nuniform sampler2D uTexture;\nuniform sampler2D uSprite;\nuniform sampler2D uCustomTexture;uniform vec2 uMousePos;\nuniform vec2 uResolution;vec4 applyLayerMix(vec4 color, vec4 bg, float amount) {\ncolor.rgb = mix(bg.rgb, color.rgb, amount);\ncolor.a = max(bg.a, amount);\nreturn color;\n}vec3 blend (int blendMode, vec3 src, vec3 dst) {\nreturn src + dst;\n}out vec4 fragColor;const vec3 LUMA = vec3(0.2126, 0.7152, 0.0722);float getLuminance(vec3 color) {\nreturn dot(color, LUMA);\n}float getGridSize() {\nreturn mix(0.05, 0.005, 0.1700);\n}vec2 getCellSize(float gridSize, float aspectRatio, float aspectCorrection) {\nfloat baseGrid = 1.0 / gridSize;\nreturn vec2(1.0 / (baseGrid * aspectRatio), 1.0 / baseGrid) * aspectCorrection;\n}vec2 getPixelatedCoord(vec2 uv, vec2 pos, vec2 cellSize) {\nvec2 offsetUv = uv - pos;\nvec2 cell = floor(offsetUv / cellSize);\nvec2 cellCenter = (cell + 0.5) * cellSize;\nreturn cellCenter + pos;\n}ivec2 getGlyphTextureSize() {\nivec2 glyphTextureSize = textureSize(uSprite, 0);glyphTextureSize = textureSize(uCustomTexture, 0);return glyphTextureSize;\n}float getGlyphHeight(ivec2 glyphTextureSize) {\nreturn float(glyphTextureSize.y);\n}float getGlyphCount(ivec2 glyphTextureSize) {\nfloat glyphHeight = getGlyphHeight(glyphTextureSize);\nreturn max(1.0, float(glyphTextureSize.x) / glyphHeight);\n}float getGlyphSelection(float luminance, float glyphCount) {\nreturn clamp(floor(luminance * glyphCount), 0.0, glyphCount - 1.0);\n}float getPhasedGlyphSelection(float luminance, float glyphCount, float gamma) {\nfloat glyphSelection = clamp(floor(luminance * glyphCount * gamma), 0.0, glyphCount - 1.0);\nfloat phaseOffset = floor(0.0000 * glyphCount + 0.5);\nreturn mod(glyphSelection + phaseOffset, glyphCount);\n}vec2 getGlyphSheetUv(vec2 uv, vec2 pos, float aspectRatio, float aspectCorrection, float gridSize, float glyphHeight, float glyphSelection, float glyphCount) {\nfloat normalizedSpriteSizeX = 1.0 / glyphCount;\nfloat normalizedSpriteSizeY = 1.0;\nvec2 spriteSize = vec2(glyphHeight / aspectRatio, glyphHeight) * (gridSize / glyphHeight) * aspectCorrection;\nvec2 localOffset = mod(uv - pos, spriteSize) / spriteSize;\nfloat inset = 0.5 / glyphHeight;\nlocalOffset = clamp(localOffset, inset, 1.0 - inset);return vec2(\nglyphSelection * normalizedSpriteSizeX + localOffset.x * normalizedSpriteSizeX,\nlocalOffset.y * normalizedSpriteSizeY\n);\n}vec4 sampleGlyphColor(vec2 glyphUv) {\nvec4 glyphColor = vec4(0.0);glyphColor = texture(uCustomTexture, glyphUv);return glyphColor;\n}void main() {\nvec2 uv = vTextureCoord;\nvec2 pos = vec2(0.5, 0.5) + mix(vec2(0), (uMousePos-0.5), 0.0000);\nfloat aspectRatio = uResolution.x / uResolution.y;\nfloat aspectCorrection = mix(aspectRatio, 1./aspectRatio, 0.5);\nfloat gridSize = getGridSize();\nvec2 cellSize = getCellSize(gridSize, aspectRatio, aspectCorrection);\nvec2 pixelatedCoord = getPixelatedCoord(uv, pos, cellSize);\nvec4 bg = texture(uTexture, vTextureCoord);\nvec4 color = texture(uTexture, pixelatedCoord);float luminance = getLuminance(color.rgb);\nluminance = mix(luminance, 1.0 - luminance, float(0));\nfloat gamma = pow(mix(0.2, 2.2, 1.0000), 2.2);\nivec2 glyphTextureSize = getGlyphTextureSize();\nfloat glyphHeight = getGlyphHeight(glyphTextureSize);\nfloat glyphCount = getGlyphCount(glyphTextureSize);\nfloat glyphSelection = getGlyphSelection(luminance, glyphCount);\nfloat phasedGlyphSelection = getPhasedGlyphSelection(luminance, glyphCount, gamma);\nvec2 spriteSheetUV = getGlyphSheetUv(uv, pos, aspectRatio, aspectCorrection, gridSize, glyphHeight, phasedGlyphSelection, glyphCount);\nvec4 spriteColor = sampleGlyphColor(spriteSheetUV);\nfloat alpha = smoothstep(0.0, 1.0, spriteColor.r);vec3 cc = (color.rgb - glyphSelection * 0.04) * 1.4;\nvec3 col = cc;vec3 result = mix(mix(vec3(0.0), vec3(1.0), float(0)), col, alpha);\ncolor.rgb = result;\nvec3 blended = blend(1, result, bg.rgb);\ncolor = applyLayerMix(vec4(blended, color.a), bg, 1.0000);\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,"texture":{"sampler":"uCustomTexture","name":"Custom glyphs","src":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAAoCAYAAAAi24Q0AAAQAElEQVR4AeydCYwVRRPHq/DAW0ARVIzrLaioicZbiGcwSNZAECECBjzQiMQoQoiQRfHWGIwiAQ14ICoGg0QS8QA1HiGGICp4YwTDoYh4Iiofv970fMPb3fdm38719hWh31R3V1XX/Gd6p6a7uqeNiGyzZBjYPWD3gN0Ddg/YPWD3gN0D8d0DOFjb8bT/hoAhYAgYAoZAnhAwWwyBykbAHKzKvn5mvSFgCBgChoAhYAjkEAFzsHJ4U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TIi0qZjWb6v/bUm0+jY4WGdFMYaawLr74YrcykMUKqvU2M/1WU1MjOC9M/zZTbSzsixYtEj4307lzZxcHpvp/2yijDp5YGougZPjw4S5GV1WFEBLCDSKICXFvfFlAtd5+9rZjEUsU2ag83NPc26rp9o82UQ00PkPAEDAEDAFDwBAwBAyBaAiYg1UMJ6szBAwBQ8AQMAQMAUOgDATMwSoDNBMxBAwBQ8AQMASyRMDazj8C5mDl/xqZhYaAIWAIGAKGgCFQYQiYg1VhF8zMNQQMgTgQMB2GgCFgCCSLgDlYyeJr2g0BQ8AQMAQMAUOgChEwB6sKL3ocp2w6DAFDwBAwBAwBQ6BpBP4HAAD//4UWlEsAAAAGSURBVAMAAQ8anqIYD64AAAAASUVORK5CYII="}},"id":"7e748ea0-7bce-4dd3-a09b-c46554e5e1e8","publicId":"glyph_dither"},{"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 src + dst;\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.5000;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(1.0000 * 0.5, 0.001);\nedge = smoothstep(0.5000 - soft, 0.5000 + soft, edge);\nedge *= (0.5000 * 2.0);vec4 scene = texture(uTexture, uv);\nvec3 outline = vec3(1, 1, 1) * edge;\nvec3 blended = outline;blended = blend(1, outline, scene.rgb);vec4 col = applyLayerMix(vec4(blended, 1.0), scene, 0.2600);\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":"372ca2a4-f7b6-4478-b794-096c50298b6a","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, 0.7800);\nvec2 pos = vec2(0.3722460220318238, 0.6297429620563035) - 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., 0.7800)) * 0.75;\nfloat noise = interleavedGradientNoise(st * uResolution);\nvec2 sampleUv = st + stepDir * noise;\nvec2 perpDir = vec2(-stepDir.y, stepDir.x);\nfloat intensity = 2.8 * 0.9000;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.0000 * 0.25;\nvec4 samp = texture(uTexture, sampleUv);\nfloat lum = dot(samp.rgb, vec3(0.299, 0.587, 0.114));\nfloat thresh = smoothstep(0.4000 - 0.1, 0.4000, 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(0.9000 <= 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":"dce16fcd-93b4-4ad0-999f-e545199a0d75","publicId":"god_rays"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"dither","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 float uTime;uniform vec2 uResolution;uvec2 pcg2d(uvec2 v) {\nv = v * 1664525u + 1013904223u;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nv ^= v >> 16;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nreturn v;\n}float randFibo(vec2 p) {\nuvec2 v = floatBitsToUint(p);\nv = pcg2d(v);\nuint r = v.x ^ v.y;\nreturn float(r) / float(0xffffffffu);\n}const int MAX_LEVEL = 4;\nconst float TAU = 6.28318530718;float getBayerFromCoordLevelScaled(vec2 pixelpos, float scale) {\nfloat finalBayer = 0.0;\nfloat finalDivisor = 0.0;\nfloat layerMult = 1.0;for(float bayerLevel = float(MAX_LEVEL); bayerLevel >= 1.0; bayerLevel--) {\nfloat bayerSize = exp2(bayerLevel) * 0.5 / scale;\nvec2 bayercoord = mod(floor(pixelpos.xy / bayerSize), 2.0);\nlayerMult *= 4.0;float byxx2 = bayercoord.x * 2.0;finalBayer += mix(byxx2, 3.0 - byxx2, bayercoord.y) / 3.0 * layerMult;\nfinalDivisor += layerMult;\n}return (finalBayer / finalDivisor - 0.006);\n}float getBayerNoise(vec2 st, float delta, float scale) {\nvec2 center = uResolution * 0.5;\nvec2 centered = st * uResolution - center;\nvec2 offset = vec2(\nmod(delta * 0.618033988749895, 16.0),\nmod(delta * 0.381966011250105, 16.0)\n) * 20.;\nvec2 final = (centered + center + offset);\nreturn getBayerFromCoordLevelScaled(final, scale);\n}vec3 dither(vec3 color, vec2 st) {\nfloat delta = floor(uTime);\nvec2 offset = vec2(randFibo(vec2(123,16) + delta), randFibo(vec2(56,96) + delta));\nfloat noise = 0.0;\nnoise = getBayerNoise(st, delta, 0.5);\nfloat dither_threshold = max(0.0001, 0.5000);\nfloat num_levels = 1.0 / dither_threshold;\nreturn floor(color * num_levels + noise) / num_levels;\n}out vec4 fragColor;void main() {\nvec2 uv = vTextureCoord;\nfloat delta = floor(uTime);\nvec4 color = texture(uTexture, uv);\ncolor.rgb = mix(color.rgb, dither(color.rgb, vTextureCoord), 0.5000);\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}"],"speed":0.5,"data":{"depth":false,"uniforms":{},"isBackground":false,"texture":{"src":"assets/unicorn/media/blue_noise_med.png","sampler":"uBlueNoise"}},"id":"d959c568-ef8a-4336-b3d8-00810afda63b","publicId":"dither"},{"breakpoints":[],"visible":true,"aspectRatio":1,"userDownsample":1,"layerType":"effect","type":"gradientMap","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 sampler2D uTexture;uniform float uTime;vec3 getColor(int index) {\nswitch(index) {\ncase 0: return vec3(0, 0, 0);\ncase 1: return vec3(0.050980392156862744, 0.011764705882352941, 0.30196078431372547);\ncase 2: return vec3(0.596078431372549, 0.592156862745098, 1);\ncase 3: return vec3(0.49019607843137253, 0.5529411764705883, 0.9921568627450981);\ncase 4: return vec3(0.7019607843137254, 0.7529411764705882, 0.996078431372549);\ncase 5: return vec3(0.9294117647058824, 0.9411764705882353, 1);\ndefault: return vec3(0.0);\n}\n}float getStop(int index) {\nswitch(index) {\ncase 0: return 0.0000;\ncase 1: return 0.2000;\ncase 2: return 0.4000;\ncase 3: return 0.6000;\ncase 4: return 0.8000;\ncase 5: return 1.0000;\ndefault: return 0.0;\n}\n}uvec2 pcg2d(uvec2 v) {\nv = v * 1664525u + 1013904223u;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nv ^= v >> 16;\nv.x += v.y * v.y * 1664525u + 1013904223u;\nv.y += v.x * v.x * 1664525u + 1013904223u;\nreturn v;\n}float randFibo(vec2 p) {\nuvec2 v = floatBitsToUint(p);\nv = pcg2d(v);\nuint r = v.x ^ v.y;\nreturn float(r) / float(0xffffffffu);\n}float deband() {\nreturn (randFibo(gl_FragCoord.xy) - 0.5) / 255.0;\n}float luma(vec3 color) {\nreturn dot(color, vec3(0.299, 0.587, 0.114));\n}vec3 linear_from_srgb(vec3 rgb) {\nreturn pow(max(rgb, vec3(0.0)), vec3(2.2));\n}vec3 srgb_from_linear(vec3 lin) {\nreturn pow(max(lin, vec3(0.0)), vec3(1.0/2.2));\n}vec3 safeCbrt(vec3 v) {\nreturn sign(v) * pow(abs(v), vec3(1.0/3.0));\n}vec3 oklab_mix(vec3 lin1, vec3 lin2, float a) {\nconst mat3 kCONEtoLMS = mat3(\n0.4121656120, 0.2118591070, 0.0883097947,\n0.5362752080, 0.6807189584, 0.2818474174,\n0.0514575653, 0.1074065790, 0.6302613616);\nconst mat3 kLMStoCONE = mat3(\n4.0767245293, -1.2681437731, -0.0041119885,\n-3.3072168827, 2.6093323231, -0.7034763098,\n0.2307590544, -0.3411344290, 1.7068625689);\nvec3 lms1 = safeCbrt(kCONEtoLMS*lin1);\nvec3 lms2 = safeCbrt(kCONEtoLMS*lin2);\nvec3 lms = mix(lms1, lms2, a);\nlms *= 1.0 + 0.02 * a * (1.0 - a);\nreturn kLMStoCONE*(lms*lms*lms);\n}vec3 getGradientColor(float position) {\nposition = clamp(position, 0.0, 1.0);\nint count = 6 - 1;\nfor (int i = 0; i < count; i++) {\nfloat colorPosition = getStop(i);\nfloat nextColorPosition = getStop(i + 1);\nif (position <= nextColorPosition) {\nfloat stopDelta = nextColorPosition - colorPosition;\nfloat mixFactor = clamp(stopDelta > 0.0001 ? (position - colorPosition) / stopDelta : 0.0, 0.0, 1.0);\nvec3 linStart = linear_from_srgb(getColor(i));\nvec3 linEnd = linear_from_srgb(getColor(i + 1));\nvec3 mixedLin = oklab_mix(linStart, linEnd, mixFactor);\nreturn srgb_from_linear(mixedLin);\n}\n}\nreturn getColor(count);\n}out vec4 fragColor;void main() {\nvec2 uv = vTextureCoord;\nvec4 color = texture(uTexture, uv);if(color.a > 0.001) {\nfloat position = smoothstep(0., 1., luma(color.rgb)) * (0.4000 * 2.);\nfloat posOffset = (dot(vec2(0.5, 0.5).x, vec2(0.5, 0.5).y) + 0.2600 + 0.0001) * 2.;\nposition -= (uTime*0.01 + posOffset);\nfloat cycle = floor(position);\nbool reverse = 1.0000 > 0.5 && int(cycle) % 2 == 0;\nfloat animatedPos = reverse ? fract(-position) : fract(position);\nanimatedPos = reverse ? fract(-position) : fract(position);\nanimatedPos = clamp(animatedPos, 0.0, 1.0);vec3 gradientColor = getGradientColor(animatedPos);\nfloat dither = deband();\ngradientColor += dither;\nvec3 mixedColor = mix(color.rgb, gradientColor, 1.0000);color.rgb = mixedColor;\n}\nfragColor = color;\n;\n}"],"compiledVertexShaders":["#version 300 es\n// Copyright (c) Unicorn Studio. Licensed under the Unicorn Studio Commercial License.\n// Unauthorized copying, redistribution, or use in competing products is prohibited.\nprecision 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.5,"data":{"depth":false,"uniforms":{},"isBackground":false},"id":"67ba1d38-7054-40e9-af7b-0c0c31fa80b4","publicId":"gradient_map"}],"options":{"name":"Tech Background (Remix)","fps":60,"dpi":1.5,"scale":1,"includeLogo":false,"isProduction":false,"flatten":false},"version":"2.1.12","id":"jquhB0EWLcJoPFKb6glw"}Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |