Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cientos): 176 remove models #199

Merged
merged 4 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,9 @@ export default defineConfig({
text: 'Abstractions',
items: [
{ text: 'Text3D', link: '/guide/abstractions/text-3d' },
{ text: 'Levioso (Float)', link: '/guide/abstractions/levioso' },
{ text: 'useAnimations', link: '/guide/abstractions/use-animations' },
{ text: 'Environment', link: '/guide/abstractions/environment' },
{ text: 'useEnvironment', link: '/guide/abstractions/use-environment' },
{ text: 'MouseParallax', link: '/guide/abstractions/mouse-parallax' },
{ text: 'Stars', link: '/guide/abstractions/stars' },
{ text: 'Smoke', link: '/guide/abstractions/smoke' },
{ text: 'Levioso (Float)', link: '/guide/abstractions/levioso' },
{ text: 'Contact Shadows', link: '/guide/abstractions/contact-shadows' },
{ text: 'Precipitation', link: '/guide/abstractions/precipitation' },
],
},
{
Expand Down Expand Up @@ -92,11 +86,18 @@ export default defineConfig({
},
{
text: 'Staging',
collapsed: true,
items: [{ text: 'Backdrop', link: '/guide/staging/backdrop' }],
items: [
{ text: 'Backdrop', link: '/guide/staging/backdrop' },
{ text: 'Environment', link: '/guide/staging/environment' },
{ text: 'useEnvironment', link: '/guide/staging/use-environment' },
{ text: 'Stars', link: '/guide/staging/stars' },
{ text: 'Smoke', link: '/guide/staging/smoke' },
{ text: 'Contact Shadows', link: '/guide/staging/contact-shadows' },
{ text: 'Precipitation', link: '/guide/staging/precipitation' }],
},
{
text: 'Misc',
collapsed: true,
items: [
{ text: 'useTweakpane', link: '/guide/misc/use-tweakpane' },
{ text: 'Stats', link: '/guide/misc/stats' },
Expand Down
10 changes: 3 additions & 7 deletions docs/.vitepress/theme/components/BackdropDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ const { hasFinishLoading, progress, items } = await useProgress()
<Suspense>
<GLTFModel
ref="model"
cast-shadow
path="/card-bo-bot/CardBoBotv3.glb"
draco
path="https://raw.githubusercontent.com/Tresjs/assets/main/models/gltf/blender-cube.glb"
:rotation="[0, 0.5, 0]"
:position="[0, 0.4, 0]"
:scale="0.5"
/>
</Suspense>
<Backdrop
Expand All @@ -88,8 +88,6 @@ const { hasFinishLoading, progress, items } = await useProgress()
cast-shadow
:position="[3, 4, 4]"
:look-at="[0, 0, 0]"
:shadow-map-size-width="256"
:shadow-map-size-height="256"
:shadow-camera-near="0.5"
:shadow-camera-left="-10"
/>
Expand All @@ -98,8 +96,6 @@ const { hasFinishLoading, progress, items } = await useProgress()
cast-shadow
:position="[-3, 2, 4]"
:look-at="[0, 0, 0]"
:shadow-map-size-width="256"
:shadow-map-size-height="256"
:shadow-camera-near="0.5"
:shadow-camera-left="-10"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Is a component abstraction that automatically sets up a global cubemap, which affects the default `scene.environment`, and optionally `scene.background`,

It uses the composable [useEnvironment](/guide/abstractions/use-environment) under the hood to load the cubemap.
It uses the composable [useEnvironment](/guide/staging/use-environment) under the hood to load the cubemap.

## Usage

Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"vite-svg-loader": "^4.0.0"
},
"dependencies": {
"@tresjs/cientos": "workspace:^"
"@tresjs/cientos": "workspace:^",
"@tweakpane/plugin-essentials": "^0.2.0"
}
}
Binary file removed docs/public/card-bo-bot/CardBoBot-height.png
Binary file not shown.
Binary file removed docs/public/card-bo-bot/CardBoBot.png
Binary file not shown.
Binary file removed docs/public/card-bo-bot/CardBoBotv3-animated.glb
Binary file not shown.
Binary file removed docs/public/card-bo-bot/CardBoBotv3-walking.glb
Binary file not shown.
Binary file removed docs/public/card-bo-bot/CardBoBotv3.glb
Binary file not shown.
6 changes: 3 additions & 3 deletions playground/.eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"PropType": true,
"Ref": true,
"VNode": true,
"WritableComputedRef": true,
"computed": true,
"createApp": true,
"customRef": true,
Expand Down Expand Up @@ -48,6 +49,7 @@
"toRaw": true,
"toRef": true,
"toRefs": true,
"toValue": true,
"triggerRef": true,
"unref": true,
"useAttrs": true,
Expand All @@ -57,8 +59,6 @@
"watch": true,
"watchEffect": true,
"watchPostEffect": true,
"watchSyncEffect": true,
"toValue": true,
"WritableComputedRef": true
"watchSyncEffect": true
}
}
2 changes: 1 addition & 1 deletion playground/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ declare global {
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue'
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
}
4 changes: 0 additions & 4 deletions playground/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export {}
declare module 'vue' {
export interface GlobalComponents {
AkuAku: typeof import('./src/components/AkuAku.vue')['default']
BackdropDemo: typeof import('./src/components/BackdropDemo.vue')['default']
ContactShadowsDemo: typeof import('./src/components/ContactShadowsDemo.vue')['default']
EnvironmentDemo: typeof import('./src/components/EnvironmentDemo.vue')['default']
GlassMaterialDemo: typeof import('./src/components/GlassMaterialDemo.vue')['default']
Gltf: typeof import('./src/components/gltf/index.vue')['default']
Expand All @@ -18,8 +16,6 @@ declare module 'vue' {
ModelsDemo: typeof import('./src/components/ModelsDemo.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
ScrollDemo: typeof import('./src/components/ScrollDemo.vue')['default']
SVGDemo: typeof import('./src/components/SVGDemo.vue')['default']
TheGizmos: typeof import('./src/components/TheGizmos.vue')['default']
UseVideoTextureDemo: typeof import('./src/components/useVideoTextureDemo.vue')['default']
WobbleMaterial: typeof import('./src/components/WobbleMaterial.vue')['default']
Expand Down
51 changes: 0 additions & 51 deletions playground/src/components/EnvironmentDemo.vue

This file was deleted.

94 changes: 0 additions & 94 deletions playground/src/components/TheGizmos.vue

This file was deleted.

60 changes: 0 additions & 60 deletions playground/src/pages/LeviosoDemo.vue

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<script setup lang="ts">
import { ref } from 'vue'
import { useVideoTexture, OrbitControls } from '@tresjs/cientos'
import { useVideoTexture, OrbitControls, Sphere } from '@tresjs/cientos'
import { TresCanvas } from '@tresjs/core'
import { SRGBColorSpace, NoToneMapping } from 'three'
import { Sphere } from '../../../src/core'

const gl = {
clearColor: '#333',
Expand Down
Loading
Loading