{"_id":"@crazygl/hero-glass-logo-sculpture","name":"@crazygl/hero-glass-logo-sculpture","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@crazygl/hero-glass-logo-sculpture","version":"0.1.1","description":"Glass Logo Sculpture — Upload a logo (SVG / PNG / GLB) and watch it become a real 3D glass paperweight: Three.js MeshPhysicalMaterial with true volumetric transmission, per-wavelength dispersion, clearcoat, Beer-Lambert… A customizable CrazyGL animated he","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./metadata.json":"./metadata.json","./style.css":"./style.css"},"dependencies":{"@crazygl/core":"^0.1.1","three":"^0.160.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"license":"Apache-2.0","author":{"name":"ybouane"},"homepage":"https://crazygl.com/hero/glass-logo-sculpture","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-glass-logo-sculpture.git"},"publishConfig":{"access":"public"},"keywords":["glass","logo","three","transmission","dispersion","refraction","pbr","ior","fresnel","premium","3d","glass-logo-sculpture","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas"],"bugs":{"url":"https://github.com/crazygl-com/hero-glass-logo-sculpture/issues"},"gitHead":"2e48cdc97ca8fa5b351e1be695b3cb8e8ea5bded","_id":"@crazygl/hero-glass-logo-sculpture@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-8RMuJHLJaBEsvo1W2gJBLwPTdfxNoxl1JVXsSNYdb9cptket1yTt7smQHyeiN+ysNljKlGGan+Trn2w7+Cv18g==","shasum":"1126632d08f3efe7118f72b90bdb0f47e057bbda","tarball":"https://registry.npmjs.org/@crazygl/hero-glass-logo-sculpture/-/hero-glass-logo-sculpture-0.1.1.tgz","fileCount":11,"unpackedSize":72863,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIApo1FlOaR+r6pgl9S6vCX82buK13kyV1ZHtQV3ks+9uAiAcKCFz+mA3JpEmRmAt1Sgn3f03MEsTTtenFaxKL/TT4g=="}]},"_npmUser":{"name":"ybouane","email":"ybouane@ybouane.com"},"directories":{},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hero-glass-logo-sculpture_0.1.1_1782922335875_0.8172430000687547"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T16:12:15.665Z","0.1.1":"2026-07-01T16:12:16.024Z","modified":"2026-07-01T16:12:16.221Z"},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"description":"Glass Logo Sculpture — Upload a logo (SVG / PNG / GLB) and watch it become a real 3D glass paperweight: Three.js MeshPhysicalMaterial with true volumetric transmission, per-wavelength dispersion, clearcoat, Beer-Lambert… A customizable CrazyGL animated he","homepage":"https://crazygl.com/hero/glass-logo-sculpture","keywords":["glass","logo","three","transmission","dispersion","refraction","pbr","ior","fresnel","premium","3d","glass-logo-sculpture","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas"],"repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-glass-logo-sculpture.git"},"author":{"name":"ybouane"},"bugs":{"url":"https://github.com/crazygl-com/hero-glass-logo-sculpture/issues"},"license":"Apache-2.0","readme":"<sub>*Hero made by [@ybouane](https://x.com/ybouane).*</sub>\n<p align=\"center\">\n  <img src=\"https://crazygl.com/heroes/hero-glass-logo-sculpture/banner-full.png\" alt=\"Glass Logo Sculpture\" width=\"640\">\n</p>\n\n# @crazygl/hero-glass-logo-sculpture\n\nUpload a logo (SVG / PNG / GLB) and watch it become a real 3D glass paperweight: Three.js MeshPhysicalMaterial with true volumetric transmission, per-wavelength dispersion, clearcoat, Beer-Lambert attenuation, ContactShadows, an HDRI-lit studio rig and pointer-driven parallax orbit that visibly bends the photographic background through the body.\n\n## Demo\n[Glass Logo Sculpture](https://crazygl.com/hero/glass-logo-sculpture)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-glass-logo-sculpture\n```\n\n## Usage\n\n```tsx\nimport GlassLogoSculpture from '@crazygl/hero-glass-logo-sculpture';\n\nexport default function Page() {\n  return (\n    <GlassLogoSculpture\n      logoImage=\"/brand/logo.svg\"\n      backgroundImage=\"/photos/forest.jpg\"\n      ior={1.5}\n      dispersionAmount={1.0}\n    />\n  );\n}\n```\n\nYou can plug in your own assets: a transparent **SVG (preferred) or PNG** silhouette is extruded into a beveled body; a **GLB / GLTF** model is used as-is (optionally re-skinned in glass via `useGlbMaterials`). Any **JPG / PNG / WebP / AVIF** photo refracts through the body, and an **equirectangular HDRI** lights the glass and drives its reflections.\n\n## Customise\n\n- **Content / Logo** — `contentType` (heading / two-columns / custom), `logoImage`, `useGlbMaterials`, `logoScale`, `centerX` / `logoY`, `extrusionDepth`, `bevelAmount`.\n- **Background** — `backgroundImage`, `backgroundDistance`, `environmentImage` (HDRI).\n- **Glass physics** — `ior`, `dispersionAmount`, `thickness`, `attenuationColor` / `attenuationDistance`, `roughness`, `clearcoat` / `clearcoatRoughness`, `envIntensity`.\n- **Behavior** — `rotationSpeed`, `parallaxAzimuth` / `parallaxElevation`, `dragInertia`.\n- **Shadow** — `shadowStrength`, `shadowBlur`.\n\n## Best for\n\n- Luxury product launches and premium SaaS / design-tool landing pages\n- Brand and identity studios that want their mark to feel physically crafted\n- High-end fintech, agency and portfolio sites\n- Any hero where a logo should read as a real optical object\n\n\n\nThis hero is part of [CrazyGL](https://crazygl.com), a collection of production-ready WebGL, canvas, 3D, and typography effects. Every CrazyGL hero ships with an agent-ready `SKILL.md` file that helps developers and coding agents adapt the effect into custom landing pages and interactive experiences.\n","readmeFilename":"README.md","_rev":"1-cf4853a6f1841fc185234ed48aed09ea"}