Skip to content

Commit

Permalink
feat: 2k github stars
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Aug 15, 2024
1 parent aa61c45 commit 3ff2e98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
10 changes: 1 addition & 9 deletions components/content/github-stars/Star.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { nodes } = await useGLTF('/models/star.glb', { draco: true })
const model = nodes['star']
const stars = Array.from({ length: 1000 }, () => ({
const stars = Array.from({ length: 2000 }, () => ({
position: [(Math.random() - 0.5) * 80, (Math.random() - 0.5) * 80, (Math.random() - 0.5) * 80],
rotation: [(Math.random() - 0.5) * 10, (Math.random() - 0.5) * 10, (Math.random() - 0.5) * 10],
scale: [1, 1, 2],
Expand Down Expand Up @@ -37,14 +37,6 @@ onLoop(({ delta }) => {

<template>
<TresGroup ref="starsRef">
<!-- <primitive
v-for="star in stars"
:key="star"
:position="star.position"
:rotation="star.rotation"
:scale="star.scale"
:object="model"
/> -->
<primitive
v-for="star in stars"
:key="star"
Expand Down
2 changes: 1 addition & 1 deletion components/content/github-stars/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const matcapTexture = await useTexture(['https://raw.githubusercontent.com/Tresj
<Text3D
font="https://raw.githubusercontent.com/Tresjs/assets/main/fonts/FiraCodeRegular.json"
center
text="1k Github Stars"
text="2k Github Stars"
:size="1"
:height="0.2"
:curve-segments="12"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
thumbnail: /github-1k-stars.png
title: 1000 🌟 on Github
slug: github-1k-stars
title: 2000 🌟 on Github
slug: github-2k-stars
author: alvarosabu
status: published
description: Scene to celebrate 1k stars on Github
description: Scene to celebrate 2k stars on Github
tags: ['basic', 'cientos', 'useGLTF', 'blender']
---

Expand Down

0 comments on commit 3ff2e98

Please sign in to comment.