[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FBEPAP49QQN7YWM4XENMZC":3,"skill-same:01M7FBEPAP49QQN7YWM4XENMZC":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M7FBEPAP49QQN7YWM4XENMZC","premium-3d-website",null,"Guidelines for building premium 3D websites, focusing on custom WebGL shaders, post-processing, physics-based interactions, smooth animations, preloaders, and device optimization.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fpremium-3d-website\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: premium-3d-website\ndescription: Guidelines for building premium 3D websites, focusing on custom WebGL shaders, post-processing, physics-based interactions, smooth animations, preloaders, and device optimization.\ncategory: frontend\nrisk: safe\nsource: self\nsource_type: self\ndate_added: \"2026-06-25\"\nauthor: Rsmiyani\ntags: [threejs, webgl, shaders, post-processing, creative-coding, premium-design]\ntools: [claude, cursor, gemini]\n---\n\n# Premium 3D Website\n\n## Overview\n\nThis skill provides architectural guidelines and code patterns for developing premium, high-end 3D websites. It targets developers looking to implement advanced WebGL visual effects, custom shader pipelines, interactive physics elements, and immersive page transitions while maintaining high performance.\n\n## When to Use This Skill\n\n- Use when designing premium or award-winning creative websites with 3D elements.\n- Use when integrating Three.js, React Three Fiber (R3F), or Spline with custom shaders (GLSL).\n- Use when implementing post-processing effects like bloom, depth-of-field, or custom film grain.\n- Use when designing interactive preloaders and high-performance asset loading strategies.\n- Use when optimizing complex 3D scenes for mobile responsiveness and performance.\n\n## How It Works\n\n### Step 1: Establish the Render Loop and Scene Architecture\nSetting up a robust WebGL context with proper resize handling and performance-friendly pixel ratios is crucial. Keep pixel ratios capped at a maximum of 2 to avoid rendering too many pixels on high-DPI screens.\n\n### Step 2: Implement Shader Effects and Post-Processing\nIncorporate post-processing pipelines (using `EffectComposer` or `@react-three\u002Fpostprocessing`) to add bloom, chromatic aberration, depth of field, or film grain. Keep pass counts low and combine custom fragment shaders to minimize draw calls.\n\n### Step 3: Integrate Interactive Physics and Motion\nUtilize physics frameworks (such as Cannon.js or Rapier) or procedural spring animations to make 3D objects react to mouse hover, drag, and click inputs with organic feedback.\n\n### Step 4: Asset Pipeline and Preloader\nOptimize 3D models (using Draco compression) and load them using custom loading managers. Render interactive preloaders to entertain users while heavy assets are fetched in the background.\n\n## Examples\n\n### Example 1: Custom Post-processing in React Three Fiber (R3F)\n\n```jsx\nimport { Canvas } from '@react-three\u002Ffiber';\nimport { EffectComposer, Bloom, DepthOfField, Vignette } from '@react-three\u002Fpostprocessing';\n\nexport default function PremiumComposer() {\n  return (\n    \u003CCanvas dpr={[1, 2]} gl={{ powerPreference: \"high-performance\", antialias: false }}>\n      \u003CambientLight intensity={0.5} \u002F>\n      \u003Cmesh>\n        \u003CboxGeometry \u002F>\n        \u003CmeshStandardMaterial emissive=\"orange\" emissiveIntensity={2.0} \u002F>\n      \u003C\u002Fmesh>\n      \n      \u003CEffectComposer disableNormalPass>\n        \u003CDepthOfField focusDistance={0} focalLength={0.02} bokehScale={2} height={480} \u002F>\n        \u003CBloom luminanceThreshold={0.3} luminanceSmoothing={0.9} height={300} \u002F>\n        \u003CVignette eskil={false} offset={0.1} darkness={1.1} \u002F>\n      \u003C\u002FEffectComposer>\n    \u003C\u002FCanvas>\n  );\n}\n```\n\n### Example 2: Custom GLSL Shader Material for Liquid\u002FWavy Effects\n\n```javascript\nimport * as THREE from 'three';\n\nconst CustomWavyMaterial = new THREE.ShaderMaterial({\n  vertexShader: `\n    varying vec2 vUv;\n    uniform float uTime;\n    void main() {\n      vUv = uv;\n      vec3 pos = position;\n      pos.z += sin(pos.x * 5.0 + uTime) * 0.1;\n      pos.z += cos(pos.y * 5.0 + uTime) * 0.1;\n      gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);\n    }\n  `,\n  fragmentShader: `\n    varying vec2 vUv;\n    uniform float uTime;\n    uniform vec3 uColor;\n    void main() {\n      float pulse = 0.5 + 0.5 * sin(uTime + vUv.x * 10.0);\n      gl_FragColor = vec4(uColor * pulse, 1.0);\n    }\n  `,\n  uniforms: {\n    uTime: { value: 0.0 },\n    uColor: { value: new THREE.Color('#3b82f6') }\n  }\n});\n```\n\n## Best Practices\n\n- ✅ Set `dpr={[1, 2]}` to restrict the device pixel ratio to a maximum of 2.\n- ✅ Disable antialiasing on the WebGLRenderer when post-processing is active to prevent double-aliasing performance penalties.\n- ✅ Bake ambient occlusion, lighting, and shadows into textures using Blender or other 3D software instead of using dynamic lights and real-time shadows.\n- ✅ Use instance rendering (`THREE.InstancedMesh` or R3F `\u003CInstances>`) for scenes containing multiple identical meshes.\n- ❌ Avoid using uncompressed GLTF\u002FOBJ models. Always compress models using Draco or Meshopt.\n- ❌ Avoid real-time shadow maps (such as `THREE.DirectionalLightShadow`) on mobile or low-end devices due to the heavy performance overhead.\n\n## Limitations\n\n- This skill does not replace environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, or safety boundaries are missing.\n- Complex shader mathematics and advanced physics simulation bounds require manual testing across different device chipsets.\n\n## Security & Safety Notes\n\n- Verify that external 3D model URLs (loaded via `GLTFLoader`) are hosted on trusted, secure CDNs (HTTPS).\n- Do not execute arbitrary, unvalidated shell scripts or use unpinned NPM packages to optimize assets.\n\n## Common Pitfalls\n\n- **Problem**: Severe lag\u002Fframerate drop on mobile or high-DPI (Retina) screens.\n  **Solution**: Ensure the pixel ratio is limited to 2 (`renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2))`) and disable unused post-processing passes.\n- **Problem**: Long loading times and white screens during initialization.\n  **Solution**: Use a loading manager (`THREE.LoadingManager`) and display a responsive, interactive preloader to keep the user engaged.\n\n## Related Skills\n\n- `@3d-web-experience` - Core WebGL, Three.js, and Spline concepts.\n- `@scroll-experience` - Integrating 3D animation with scroll controllers.\n- `@performance-optimizer` - General code execution performance tuning.\n","# Premium 3D Website\n\n## Overview\n\nThis skill provides architectural guidelines and code patterns for developing premium, high-end 3D websites. It targets developers looking to implement advanced WebGL visual effects, custom shader pipelines, interactive physics elements, and immersive page transitions while maintaining high performance.\n\n## When to Use This Skill\n\n- Use when designing premium or award-winning creative websites with 3D elements.\n- Use when integrating Three.js, React Three Fiber (R3F), or Spline with custom shaders (GLSL).\n- Use when implementing post-processing effects like bloom, depth-of-field, or custom film grain.\n- Use when designing interactive preloaders and high-performance asset loading strategies.\n- Use when optimizing complex 3D scenes for mobile responsiveness and performance.\n\n## How It Works\n\n### Step 1: Establish the Render Loop and Scene Architecture\nSetting up a robust WebGL context with proper resize handling and performance-friendly pixel ratios is crucial. Keep pixel ratios capped at a maximum of 2 to avoid rendering too many pixels on high-DPI screens.\n\n### Step 2: Implement Shader Effects and Post-Processing\nIncorporate post-processing pipelines (using `EffectComposer` or `@react-three\u002Fpostprocessing`) to add bloom, chromatic aberration, depth of field, or film grain. Keep pass counts low and combine custom fragment shaders to minimize draw calls.\n\n### Step 3: Integrate Interactive Physics and Motion\nUtilize physics frameworks (such as Cannon.js or Rapier) or procedural spring animations to make 3D objects react to mouse hover, drag, and click inputs with organic feedback.\n\n### Step 4: Asset Pipeline and Preloader\nOptimize 3D models (using Draco compression) and load them using custom loading managers. Render interactive preloaders to entertain users while heavy assets are fetched in the background.\n\n## Examples\n\n### Example 1: Custom Post-processing in React Three Fiber (R3F)\n\n```jsx\nimport { Canvas } from '@react-three\u002Ffiber';\nimport { EffectComposer, Bloom, DepthOfField, Vignette } from '@react-three\u002Fpostprocessing';\n\nexport default function PremiumComposer() {\n  return (\n    \u003CCanvas dpr={[1, 2]} gl={{ powerPreference: \"high-performance\", antialias: false }}>\n      \u003CambientLight intensity={0.5} \u002F>\n      \u003Cmesh>\n        \u003CboxGeometry \u002F>\n        \u003CmeshStandardMaterial emissive=\"orange\" emissiveIntensity={2.0} \u002F>\n      \u003C\u002Fmesh>\n      \n      \u003CEffectComposer disableNormalPass>\n        \u003CDepthOfField focusDistance={0} focalLength={0.02} bokehScale={2} height={480} \u002F>\n        \u003CBloom luminanceThreshold={0.3} luminanceSmoothing={0.9} height={300} \u002F>\n        \u003CVignette eskil={false} offset={0.1} darkness={1.1} \u002F>\n      \u003C\u002FEffectComposer>\n    \u003C\u002FCanvas>\n  );\n}\n```\n\n### Example 2: Custom GLSL Shader Material for Liquid\u002FWavy Effects\n\n```javascript\nimport * as THREE from 'three';\n\nconst CustomWavyMaterial = new THREE.ShaderMaterial({\n  vertexShader: `\n    varying vec2 vUv;\n    uniform float uTime;\n    void main() {\n      vUv = uv;\n      vec3 pos = position;\n      pos.z += sin(pos.x * 5.0 + uTime) * 0.1;\n      pos.z += cos(pos.y * 5.0 + uTime) * 0.1;\n      gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0);\n    }\n  `,\n  fragmentShader: `\n    varying vec2 vUv;\n    uniform float uTime;\n    uniform vec3 uColor;\n    void main() {\n      float pulse = 0.5 + 0.5 * sin(uTime + vUv.x * 10.0);\n      gl_FragColor = vec4(uColor * pulse, 1.0);\n    }\n  `,\n  uniforms: {\n    uTime: { value: 0.0 },\n    uColor: { value: new THREE.Color('#3b82f6') }\n  }\n});\n```\n\n## Best Practices\n\n- ✅ Set `dpr={[1, 2]}` to restrict the device pixel ratio to a maximum of 2.\n- ✅ Disable antialiasing on the WebGLRenderer when post-processing is active to prevent double-aliasing performance penalties.\n- ✅ Bake ambient occlusion, lighting, and shadows into textures using Blender or other 3D software instead of using dynamic lights and real-time shadows.\n- ✅ Use instance rendering (`THREE.InstancedMesh` or R3F `\u003CInstances>`) for scenes containing multiple identical meshes.\n- ❌ Avoid using uncompressed GLTF\u002FOBJ models. Always compress models using Draco or Meshopt.\n- ❌ Avoid real-time shadow maps (such as `THREE.DirectionalLightShadow`) on mobile or low-end devices due to the heavy performance overhead.\n\n## Limitations\n\n- This skill does not replace environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, or safety boundaries are missing.\n- Complex shader mathematics and advanced physics simulation bounds require manual testing across different device chipsets.\n\n## Security & Safety Notes\n\n- Verify that external 3D model URLs (loaded via `GLTFLoader`) are hosted on trusted, secure CDNs (HTTPS).\n- Do not execute arbitrary, unvalidated shell scripts or use unpinned NPM packages to optimize assets.\n\n## Common Pitfalls\n\n- **Problem**: Severe lag\u002Fframerate drop on mobile or high-DPI (Retina) screens.\n  **Solution**: Ensure the pixel ratio is limited to 2 (`renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2))`) and disable unused post-processing passes.\n- **Problem**: Long loading times and white screens during initialization.\n  **Solution**: Use a loading manager (`THREE.LoadingManager`) and display a responsive, interactive preloader to keep the user engaged.\n\n## Related Skills\n\n- `@3d-web-experience` - Core WebGL, Three.js, and Spline concepts.\n- `@scroll-experience` - Integrating 3D animation with scroll controllers.\n- `@performance-optimizer` - General code execution performance tuning.\n",{"name":5,"risk":24,"tags":25,"tools":32,"author":36,"source":37,"category":38,"date_added":39,"description":7,"source_type":37},"safe",[26,27,28,29,30,31],"threejs","webgl","shaders","post-processing","creative-coding","premium-design",[33,34,35],"claude","cursor","gemini","Rsmiyani","self","frontend","2026-06-25","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fpremium-3d-website",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill premium-3d-website",{"tool":54,"command":55},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill premium-3d-website",{"tool":57,"command":58},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill premium-3d-website","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fpremium-3d-website\u002FSKILL.md",true,[],[63,70,75,82,89,96],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":71,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]