Commit 0cdd58e
feat: V4 (#420)
* feat(AnimatedSprite): add AnimatedSprite, playground, docs
* chore(AnimatedSprite): fix linter errors
* chore(AnimatedSprite): update docs
* feat(AnimatedSprite): allow [numCols, numRows] as atlas prop
* docs(AnimatedSprite): reorder sections, improve clarity
* docs(AnimatedSprite): format type names
* docs(AnimatedSprite): update no-atlas example to use [cols, rows]
* chore(AnimatedSprite): run linter, remove console.log
* refactor(AnimatedSprite): create new animation frames if props.reversed is toggled
* docs(AtlasAnimationDefinitionParser): change 'delay' to 'duration'
* refactor(AtlasAnimationDefinitionParser): make parse function private to module
* refactor(AtlasAnimationDefinitionParser): use destructuring
* refactor(AtlasAnimationDefinitionParser): use destructuring
* refactor(AtlasAnimationDefinitionParser): rename returned value 'result'
* chore: run linter
* refactor(AtlasAnimationDefinitionParser): rename private error logging functions
* refactor(Atlas): rename private functions
* fix(Atlas): add missing argument to function call
* refactor(AnimatedSprite): merge FrameData types as single type
* refactor(AnimatedSprite): change callbacks to emits
* chore(AnimatedSprite): run linter
* chore(AnimatedSprite): format Atlas error message
* fix(AnimatedSprite): return nullFrame animation if requested animation not found
* refactor(AnimatedSprite): simplify component onLoop
* chore(AnimatedSprite): run lint --fix
* refactor(AnimatedSprite): add Atlasish type
* refactor(AnimatedSprite): remove onLoad prop
* feat(app)!: 227 Change the keyboardcontrols implementation
* docs(AnimatedSprite): update docs and demos
* docs(AnimatedSprite): update playground demo
* refactor(AnimatedSprite): remove TresSprite
* refactor(AnimatedSprite): rename prop, anchor -> center
* refactor(AnimatedSprite): remove asSprite prop, improve clarity
* docs(AnimatedSprite): update docs
* refactor(AnimatedSprite): update playground
* refactor(AnimatedSprite): rename 'page' -> 'atlas'
* refactor(AnimatedSprite): make definitions reactive
* feat(AnimatedSprite): change default fps
* docs(AnimatedSprite): mark props as 'not reactive'
* feat(AnimatedSprite): always emit last frame name on loop and on end
* docs(AnimatedSprite): correct and update docs/demos
* chore(AnimatedSprite): run linter
* docs(AnimatedSprite): improve wording
* feat: add arrow keys support
* refactor(AnimatedSprite): improve variable name
* refactor(AnimatedSprite): use degrees instead of radians in example
* chore(AnimatedSprite): fix linter errors
* refactor(app)!: 349 Remove directives from cientos
* docs(app): 227 Add documentation for new KeyboardControls
* feat(app): 227 Final details, ready to go
* refactor: move in the right position a piece of code
* chore: update core to `v4`
* chore: release v4.0.0-next.0
* fix(MeshReflectionMaterial)!: add features/docs, reorganize
* feat(AnimatedSprite): add asSprite prop
* feat(AnimatedSprite): dispose texture onUnmounted
* feat(AnimatedSprite): remove explicit click event
* feat(AnimatedSprite): remove unnecessary Suspense
* docs(AnimatedSprite): add asSprite control to demo
* docs(AnimatedSprite): update demo code line highlights
* docs(AnimatedSprite): update atlas path, image names
* refactor: defineExpose
* refactor: change value.value -> value.instance in defineExpose
* fix: uncomment section
* refactor(app): 160 Add Global audio, stats, statsGl
* refactor: remove extra semi-colon, lint issue
* chore: Fix Lint (console.logs should be disabled in playground)
* chore: update lint
* chore: fix lints
* chore: fix demos
* chore: fix lint
* feat(app): 421 Adapt components to use useLoop instead of useRenderLoop
* Revert "feat(app): 421 Adapt components to use useLoop instead of useRenderLoop"
This reverts commit 24e9812.
* feat(app): 421 Update components to use useLoop instead of useRenderLoop
* chore: update statsGl y stats
* fix lint
* chore: update useEnviroment
* chore: update fbo
* chore: lint
* feat: re-remove tweakpane (#425)
* feat(app)!: 313 re-uninstall tweakpane
* chore: fix lint
* docs: update enviroment and useEnviroment docs
* fix: remove hardcoded speed number, that setting at 0 doesn't stop the effect
* update lock
* chore: add Cylinder to v4 (#439)
* chore: add Cylinder to v4
* chore: fix playground link
* fix(Lensflare demo): add camera #435 (#441)
* feat: update to core v4.2
* chore(ci): update node version to 20 for linting
* chore: fix lints
* feat: 423 enable on demand render mode usage (#436)
* chore(deps): update deps to latest
* chore: on demand invalidation composable with prop change detection
* feat: on-demand orbit-controls
* feat: on-demand camera controls
* feat: invalidate also on autoRotate
* feat: on-demand map controls and refactor
* feat: on-demand transform controls
* feat: on-demand keyboard controls
* feat: on-demand keybaord controls
* chore: added demo suffix to control pages to avoid confusions
* feat: on-demand pointer lock controls
* feat: on-demand scroll controls
* feat: on-demand levioso
* feat: correct orbit controls auto rotate invalidation
* feat: on-demand text3d
* feat: on-demand mouse-parallax
* feat: on-demand fbo and size watcher refactor
* chore(playground): refactor to use useLoop and sub components
* chore: remove unused import for lint fix
* chore(playground): refactor lensflare demo to use useLoop
* feat: on-demand sampler
* feat: on-demand invaldiation on reflector prop change
* chore: added render activity graph and try to make on-demand work on AnimatedSprite
* chore: renamed positional audio demo
* chore: on-demand smoke
* feat: on-demand precipitation
* feat: on-dermand stars
* feat: on-demand Environment
* feat: on-demand sky
* feat: on-demand Ocean component
* chore: testing on-demand on fit
* feat: on-demand Wobble Material
* feat: on-demand invalidation holographic material
* feat: on-demand reflection material
* feat: on-demand custom shader material
* chore: rename bakeshadows demo
* chore: misc route
* chore: ci, update action setup
* docs: add migration guide from v3 in cientos (to do grammar check, ad… (#428)
* docs: add migration guide from v3 in cientos (to do grammar check, add img)
* docs: grammar corrections
* fix lint
* docs: rename migration-guide.md -> migrating-from-v3.md
* docs: update wording/formatting
---------
Co-authored-by: Peter <[email protected]>
* fix(types): fixed types generics for `useGLTF` (#448)
* feat(app): Add the option for x and y in mouseparallax component (#444)
* feat(app): Add the option for x and y in mouseparallax component
* fix reactivity, grammar corrections
* change ref for shallowRef
* chore: release v4.0.0-next.1
* docs(SVG): set playground render-mode to on-demand
* refactor(HolographicMaterial): remove useOnDemandInvalidation, use invalidate
* refactor(CustomShaderMaterial): remove useOnDemandInvalidated, use invalidate
* refactor(MeshReflectionmaterial): remove useOnDemandInvalidated, use invalidate
* refactor: call invalidate on props update
* docs: add on-demand shapes playground demo
* fix: reimplement ContactShadows for v4 (#449)
* chore(deps): update deps to latest
* chore: on demand invalidation composable with prop change detection
* feat: on-demand orbit-controls
* feat: on-demand camera controls
* feat: invalidate also on autoRotate
* feat: on-demand map controls and refactor
* feat: on-demand transform controls
* feat: on-demand keyboard controls
* feat: on-demand keybaord controls
* chore: added demo suffix to control pages to avoid confusions
* feat: on-demand pointer lock controls
* feat: on-demand scroll controls
* feat: on-demand levioso
* feat: correct orbit controls auto rotate invalidation
* feat: on-demand text3d
* feat: on-demand mouse-parallax
* feat: on-demand fbo and size watcher refactor
* chore(playground): refactor to use useLoop and sub components
* chore: remove unused import for lint fix
* chore(playground): refactor lensflare demo to use useLoop
* feat: on-demand sampler
* feat: on-demand invaldiation on reflector prop change
* chore: added render activity graph and try to make on-demand work on AnimatedSprite
* chore: renamed positional audio demo
* chore: on-demand smoke
* feat: on-demand precipitation
* feat: on-dermand stars
* feat: on-demand Environment
* feat: on-demand sky
* feat: on-demand Ocean component
* chore: testing on-demand on fit
* feat: on-demand Wobble Material
* feat: on-demand invalidation holographic material
* feat: on-demand reflection material
* feat: on-demand custom shader material
* chore: rename bakeshadows demo
* chore: misc route
* chore: ci, update action setup
* chore: update Tres core
* fix: reimplement ContactShadows for v4 core
* docs: change link name
* fix(ContactShadows): add invalidate to updates
---------
Co-authored-by: alvarosabu <[email protected]>
* feat(Sparkles): invalidate on update (#446)
* feat(Sparkles): invalidate on update
* chore: fix linter error
* refactor(Sparkles): remove renderMode predicate before invalidate
* chore: remove on demand composable (#452)
* chore: remove `useOnDemandInvalidation` on Levioso
* chore: remove composable `useOnDemandInvalidation`
* chore: remove composable from Ocean
* chore: remove composable on Precipitation
* chore: remove composable from sky
* chore: remove from Fit
* chore: remove from smoke
* chore: remove from orbit-controls
* chore: remove composable from Text3D
* chore: remove from mouse parallax
* chore: remove composable from Reflector
* chore: only needed fbo invalidation
* chore: remove composable from useSurfaceSampler
* chore: remove composable from all controls
* chore: add invalidation on loop
* chore: remove prop speed check on loop for Levioso
* chore: remove invalidateOnDemand on MapControls
* chore: remove `invalidateOnDemand` from Keyboard controls
* chore: add invalidate on fit method, remove watch props
* chore: invalidation refactor leftovers
* chore(types): fixes some type issues
* fix: update to core v4.2.2 to remove warning on invalidation
* chore: fix lint
* chore: release v4.0.0-rc.0
* feat(fbo): add autoRender flag as an option to useFBO (#458)
This PR adds an `autoRender` flag to `FBOOptions`.
This flag allows consumers of `useFBO` who want to take control of when
and where to render the render target instead of always rendering it
with the default scene and camera.
Co-authored-by: Alvaro Saburido <[email protected]>
* chore: fix lint
* chore: release v4.0.0-rc.1
* docs: added recipe for tweakpane to migration guides
* chore(playground): added same scale as default
* chore: release v4.0.0-rc.2
* chore: linter fix
* chore: update deps to fix docs build
* fix: typescript issues (#459)
* fix: type assertion for props as params of `normalizeVectorFlexibleParam`
* fix: type assertion on camera and pointerlock controls
* refactor(BlurPass): fix TS errors
* refactor(SVG): fix TS errors
* refactor(Lensflare): fix TS errors
* refactor(Reflector): silence and explain TS error
* refactor(HolographicMaterial): add declaration for clock
* refactor(MeshWobbleMaterial): fix TS error
* fix(useProgress): remove extraneous, unused argument
* chore(types): fixed gradient type issue from core
* fix(types): controls types
* chore(types): fix loaders types
* chore(types): HTML
* chore(types): improve occlude type on HTML
* refactor(environment)!: properly type and return texture ref
BREAKING CHANGE: `useEnvironment` now returns a ref with the texture instead of an object { texture }
* chore(types): HTML, backdrop and Sparkles type issues
* chore(types): correct occlusion types without the refs
* fix(transform-controls): fps drops due prop watcher for invalidation
* chore: type issues on transform controls
---------
Co-authored-by: Peter <[email protected]>
* fix: AnimatedSprite (#464)
* fix: remove explicit fallthrough attr attachment
* fix: remove infinite loop
* docs: move click from canvas to object
* docs: convert props table to HTML
* docs: rephrase
* chore: deps update
* chore: update deps
* ci: update lint action
* chore: fix lint
* chore: fix lint
* chore: lint issues
* chore: lint remove whitespaces
* chore: lint
---------
Co-authored-by: Peter <[email protected]>
Co-authored-by: alvarosabu <[email protected]>
Co-authored-by: Chau Tran <[email protected]>1 parent 9e17559 commit 0cdd58e
File tree
170 files changed
+11932
-8309
lines changed- .github/workflows
- docs
- .vitepress
- theme/components
- component-list
- guide
- abstractions
- controls
- directives
- materials
- misc
- shapes
- staging
- playground
- src
- components
- composables
- pages
- abstractions
- fbo
- lensflare
- controls
- directives
- loaders
- materials
- misc
- shapes
- staging
- fit
- router
- routes
- src
- core
- abstractions
- AnimatedSprite
- Lensflare
- useFBO
- useSurfaceSampler
- controls
- directives
- loaders
- SVG
- useFBX
- useGLTF
- materials
- customShaderMaterial
- holographicMaterial
- meshGlassMaterial
- meshReflectionMaterial
- meshWobbleMaterial
- misc
- html
- useTweakPane
- shapes
- staging
- Sparkles
- useEnvironment
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
170 files changed
+11932
-8309
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 18 | + | |
| 19 | + | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
26 | | - | |
| 24 | + | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
1 | 84 | | |
2 | 85 | | |
3 | 86 | | |
| |||
38 | 121 | | |
39 | 122 | | |
40 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
41 | 140 | | |
42 | 141 | | |
43 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 6 | | |
19 | 7 | | |
20 | 8 | | |
| |||
65 | 53 | | |
66 | 54 | | |
67 | 55 | | |
68 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
69 | 166 | | |
70 | 167 | | |
71 | 168 | | |
| |||
Lines changed: 113 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
0 commit comments