05.粒子特效

1. 粒子球

      // 创建几何体
     const sphereGeometry = new THREE.SphereGeometry(3,20,20)
     // 设置点材质
     const pointsMaterial = new THREE.PointsMaterial();
     pointsMaterial.size = 0.2;
     pointsMaterial.color.set("#ff0000")
     pointsMaterial.sizeAttenuation = true
     // 载入纹理
     const textureLoader = new THREE.TextureLoader();
     const texture = textureLoader.load("/particles/1.png")
     // 设置点纹理
     pointsMaterial.map = texture;
     pointsMaterial.alphaMap = texture;
     pointsMaterial.transparent = true;
     // 深度检测
     pointsMaterial.depthWrite = false;
     // 混合算法
     pointsMaterial.blending = THREE.AdditiveBlending;


     const points = new THREE.Points(sphereGeometry,pointsMaterial);
     scene.add(points)

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇