|
|

楼主 |
发表于 2025-6-13 19:55
|
显示全部楼层
帖子代码
- <style>
- #tz { margin: 30px 0; left: calc(50% - 81px); transform: translateX(-50%); width: clamp(600px, 90vw, 1400px); height: auto; aspect-ratio: 16/9; background: url('https://638183.freep.cn/638183/t24/webp2/flover.webp') no-repeat center/cover; box-shadow: 2px 2px 8px #000; display: grid; place-items: center; z-index: 1; position: relative; }
- #btnFs { top: 30px; color: #eee; }
- #tz > canvas { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: block; }
- </style>
- <div id="tz"></div>
- <audio id="aud" src="https://music.163.com/song/media/outer/url?id=497289498" autoplay loop></audio>
- <script type="module">
- import { THREE, scene, camera, renderer, clock, LZ } from 'https://638183.freep.cn/638183/web/ku/spriteparticle.js';
- //import { THREE, scene, camera, renderer, clock, LZ } from './spriteparticle.js';
- const config = {
- sprite: {
- number: 500,
- scale: [0.5, 0.5, 0.25],
- pic: 'https://638183.freep.cn/638183/small/780.png',
- rotation: [-20, -20, -30]
- },
- mesh: {
- pic: 'https://638183.freep.cn/638183/small/rose.jpg',
- color: 0xff66ff,
- transparent: true,
- position: [0, 2, 0],
- rotate: [0, 0, 0],
- rotation: [0.5, -0.25, -0.3]
- }
- };
- LZ(tz, config);
- new THREE.TextureLoader().load(
- 'https://638183.freep.cn/638183/small/2025/24g.webp',
- (texture) => {
- texture.colorSpace = THREE.SRGBColorSpace;
- const girl = new THREE.Sprite(
- new THREE.SpriteMaterial({ map: texture })
- );
- girl.position.set(0, -1.6, 0);
- girl.scale.set(3, 5, 1);
- scene.add(girl);
- }
- );
- </script>
复制代码
|
评分
-
| 参与人数 2 | 威望 +80 |
金钱 +160 |
经验 +80 |
收起
理由
|
红影
| + 50 |
+ 100 |
+ 50 |
赞一个! |
花飞飞
| + 30 |
+ 60 |
+ 30 |
很给力! |
查看全部评分
|