Community编程与开发github.com

cloudai-x/threejs-materials

Three.js 材质 - PBR、基本材质、Phong 材质、着色器材质及材质属性。用于网格样式设计、纹理处理、自定义着色器创建或材质性能优化。

threejs-materials 是什么?

该技能专注于 Three.js 材质系统,涵盖了从基本材质(MeshBasicMaterial)到标准材质(MeshStandardMaterial)、Phong 材质(MeshPhongMaterial)、PBR 材质以及自定义着色器材质(ShaderMaterial)的全面内容。它帮助开发者理解材质属性(如颜色、贴图、发光度、透明度、粗糙度、金属度等),并指导如何在网格(Mesh)应用中使用纹理映射、法线贴图、环境贴图等技术来增强视觉效果。此外,技能还涉及材质性能优化策略,例如减少材质实例化、合理使用共享材质、以及通过自定义着色器实现高级渲染效果。该技能适用于所有支持 Three.js 的开发环境,包括 Vue、React 或原生 JavaScript 项目,无论是构建游戏、可视化工具还是交互式 3D 应用,都能提供清晰的代码示例和最佳实践。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cloudai-x/threejs-skills/tree/main/skills/threejs-materials

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

threejs-materials 是做什么的?

Three.js 材质 - PBR、基本材质、Phong 材质、着色器材质及材质属性。用于网格样式设计、纹理处理、自定义着色器创建或材质性能优化。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

cloudai-x/threejs-animation

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

cloudai-x/threejs-fundamentals

Three.js scene setup, cameras, renderer, Object3D hierarchy, coordinate systems. Use when setting up 3D scenes, creating cameras, configuring renderers, managing object hierarchies, or working with transforms.

cloudai-x/threejs-geometry

Three.js geometry creation - built-in shapes, BufferGeometry, custom geometry, instancing. Use when creating 3D shapes, working with vertices, building custom meshes, or optimizing with instanced rendering.

cloudai-x/threejs-interaction

Three.js interaction - raycasting, controls, mouse/touch input, object selection. Use when handling user input, implementing click detection, adding camera controls, or creating interactive 3D experiences.

cloudai-x/threejs-lighting

Three.js lighting - light types, shadows, environment lighting. Use when adding lights, configuring shadows, setting up IBL, or optimizing lighting performance.

cloudai-x/threejs-loaders

Three.js asset loading - GLTF, textures, images, models, async patterns. Use when loading 3D models, textures, HDR environments, or managing loading progress.

cloudai-x/threejs-postprocessing

Three.js post-processing - EffectComposer, bloom, DOF, screen effects. Use when adding visual effects, color grading, blur, glow, or creating custom screen-space shaders.

cloudai-x/threejs-shaders

Three.js shaders - GLSL, ShaderMaterial, uniforms, custom effects. Use when creating custom visual effects, modifying vertices, writing fragment shaders, or extending built-in materials.

cloudai-x/threejs-textures

Three.js textures - texture types, UV mapping, environment maps, texture settings. Use when working with images, UV coordinates, cubemaps, HDR environments, or texture optimization.

相关技能