Skip to content

Commit

Permalink
chore: added opencollective sponsors
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Jul 2, 2024
1 parent e630114 commit 84b1dd1
Show file tree
Hide file tree
Showing 6 changed files with 318 additions and 36 deletions.
21 changes: 19 additions & 2 deletions playground/src/pages/basic/index.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { BasicShadowMap, NoToneMapping, SRGBColorSpace } from 'three'
import { BasicShadowMap, MeshToonMaterial, NoToneMapping, SRGBColorSpace } from 'three'
import { reactive, ref } from 'vue'
import { TresCanvas, useRenderLoop } from '@tresjs/core'
import { OrbitControls } from '@tresjs/cientos'
Expand Down Expand Up @@ -38,6 +38,10 @@ function onPointerOut(ev) {
}
const sphereExists = ref(true)
const toonTealMaterial = new MeshToonMaterial({
color: 'teal',
})
</script>

<template>
Expand All @@ -48,6 +52,7 @@ const sphereExists = ref(true)
<TresCanvas
ref="canvasRef"
v-bind="state"
@render="onRender"
>
<TresPerspectiveCamera
:position="[11, 11, 11]"
Expand All @@ -66,14 +71,26 @@ const sphereExists = ref(true)
:user-data="{ debug: true }"
:position="[0, 4, 0]"
cast-shadow
:material="toonTealMaterial"
@pointer-enter="onPointerEnter"
@pointer-out="onPointerOut"
>
<TresSphereGeometry :args="[2, 32, 32]" />
<TresMeshBasicMaterial color="teal" />
<TresMeshStandardMaterial attach="attachedMaterial" />
</TresMesh>
</TresGroup>

<TresMesh
ref="sphereRef"
:position="[-4, 4, 0]"
cast-shadow
:material="toonTealMaterial"
@pointer-enter="onPointerEnter"
@pointer-out="onPointerOut"
>
<TresSphereGeometry :args="[2, 32, 32]" />
</TresMesh>

<TresDirectionalLight
:position="[0, 8, 4]"
:intensity="0.7"
Expand Down
4 changes: 4 additions & 0 deletions sponsorkit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ export default defineConfig({
login: 'tresjs',
type: 'organization',
},
opencollective: {
slug: 'tresjs',
},
// Rendering configs
width: 800,
renderer: 'tiers', // or 'circles'
formats: ['json', 'svg', 'png'],
sponsorsAutoMerge: true,
tiers: [
// Past sponsors, currently only supports GitHub
{
Expand Down
166 changes: 146 additions & 20 deletions sponsorkit/.cache.json

Large diffs are not rendered by default.

126 changes: 126 additions & 0 deletions sponsorkit/sponsors.json

Large diffs are not rendered by default.

Binary file modified sponsorkit/sponsors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 23 additions & 14 deletions sponsorkit/sponsors.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84b1dd1

Please sign in to comment.