Skip to content

Commit 3ff2e98

Browse files
committed
feat: 2k github stars
1 parent aa61c45 commit 3ff2e98

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

components/content/github-stars/Star.vue

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { nodes } = await useGLTF('/models/star.glb', { draco: true })
55
66
const model = nodes['star']
77
8-
const stars = Array.from({ length: 1000 }, () => ({
8+
const stars = Array.from({ length: 2000 }, () => ({
99
position: [(Math.random() - 0.5) * 80, (Math.random() - 0.5) * 80, (Math.random() - 0.5) * 80],
1010
rotation: [(Math.random() - 0.5) * 10, (Math.random() - 0.5) * 10, (Math.random() - 0.5) * 10],
1111
scale: [1, 1, 2],
@@ -37,14 +37,6 @@ onLoop(({ delta }) => {
3737

3838
<template>
3939
<TresGroup ref="starsRef">
40-
<!-- <primitive
41-
v-for="star in stars"
42-
:key="star"
43-
:position="star.position"
44-
:rotation="star.rotation"
45-
:scale="star.scale"
46-
:object="model"
47-
/> -->
4840
<primitive
4941
v-for="star in stars"
5042
:key="star"

components/content/github-stars/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const matcapTexture = await useTexture(['https://raw.githubusercontent.com/Tresj
3636
<Text3D
3737
font="https://raw.githubusercontent.com/Tresjs/assets/main/fonts/FiraCodeRegular.json"
3838
center
39-
text="1k Github Stars"
39+
text="2k Github Stars"
4040
:size="1"
4141
:height="0.2"
4242
:curve-segments="12"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
thumbnail: /github-1k-stars.png
3-
title: 1000 🌟 on Github
4-
slug: github-1k-stars
3+
title: 2000 🌟 on Github
4+
slug: github-2k-stars
55
author: alvarosabu
66
status: published
7-
description: Scene to celebrate 1k stars on Github
7+
description: Scene to celebrate 2k stars on Github
88
tags: ['basic', 'cientos', 'useGLTF', 'blender']
99
---
1010

0 commit comments

Comments
 (0)