1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00
Commit Graph

416 Commits

Author SHA1 Message Date
Kevin Levron
e4cefb4809 cs fix 2021-04-21 16:08:10 +02:00
Kevin Levron
9288a3eedf effects 2021-04-21 16:07:03 +02:00
Kevin Levron
7cdda981ef object3d 2021-04-21 16:04:20 +02:00
Kevin Levron
8a2d874290 instancedmesh 2021-04-21 16:03:31 +02:00
Kevin Levron
3b53044f14 wip: renderer 2021-04-21 14:24:32 +02:00
Kevin Levron
b5e03c5600 wip: effectcomposer 2021-04-21 02:17:31 +02:00
Kevin Levron
d10c7d6a02 wip: renderer 2021-04-21 01:23:09 +02:00
Kevin Levron
672c4f6ad2 wip: improve object3d 2021-04-21 01:10:48 +02:00
Kevin Levron
9583a24136 wip: simplify useThree 2021-04-21 01:10:20 +02:00
Kevin Levron
973dda4002 wip 2021-04-20 17:50:06 +02:00
Kevin Levron
81852fee78 wip: effects 2021-04-20 12:41:04 +02:00
Kevin Levron
1da2a90c67 wip: materials 2021-04-19 23:46:31 +02:00
Kevin Levron
55da595191 wip 2021-04-19 23:27:31 +02:00
Kevin Levron
6b3443d761 wip: lights 2021-04-19 20:49:52 +02:00
Kevin Levron
da2a4607c3 wip: core 2021-04-19 19:57:19 +02:00
Kevin Levron
65eb3d9450 wip: lights 2021-04-19 19:57:10 +02:00
Kevin Levron
8adb685c56 wip: core 2021-04-19 19:37:11 +02:00
Kevin Levron
98c892112a wip 2021-04-19 03:22:02 +02:00
Kevin Levron
971f37e29b wip 2021-04-19 02:17:56 +02:00
Kevin Levron
f81c9a6996 wip: camera 2021-04-19 01:53:25 +02:00
Kevin Levron
b073f738b2 object3d userData 2021-04-19 01:28:09 +02:00
Kevin Levron
457b7fb58b models 2021-04-19 01:26:22 +02:00
Kevin Levron
4133e5540a wip 2021-04-19 01:13:51 +02:00
Kevin Levron
b3f21b3ec6 wip: materials 2021-04-19 00:40:22 +02:00
Kevin Levron
457d871269 wip: materials 2021-04-19 00:10:00 +02:00
Kevin Levron
b37c1b465f wip 2021-04-18 23:06:50 +02:00
Kevin Levron
a7a4f15734 wip: lights 2021-04-18 22:58:28 +02:00
Kevin Levron
ca2ef58436 wip: meshes 2021-04-18 22:30:17 +02:00
Kevin Levron
b5ab6567e3 wip: core 2021-04-18 22:27:53 +02:00
Kevin Levron
5df3223bd6 wip: geometries 2021-04-18 22:25:24 +02:00
Kevin Levron
216c44deaf wip (meshes) 2021-04-16 04:19:25 +02:00
Kevin Levron
f82a7d5ab4 wip (geometries) 2021-04-16 04:13:00 +02:00
Kevin Levron
53a5f32344 wip (core) 2021-04-16 04:12:41 +02:00
Kevin Levron
de98dd8d11 wip 2021-04-16 03:19:50 +02:00
Kevin Levron
d2006b1f2c wip 2021-04-16 01:56:52 +02:00
Kevin Levron
154fd7439c wip 2021-04-16 00:54:11 +02:00
Kevin Levron
89b2d99098 fix RectAreaLight unmounted 2021-04-12 23:36:23 +02:00
Kevin Levron
0f0fe659af remove optional chaining (#42) 2021-04-07 00:02:02 +02:00
Kevin Levron
41dfd4465a clear callbacks onUnmounted 2021-04-06 19:17:32 +02:00
Kevin Levron
7e0c4d5737 cs 2021-04-06 18:43:06 +02:00
Sander Moolin
ea82a46cce remove extra import (without package-lock this time) 2021-04-06 10:29:33 -04:00
Sander Moolin
4807f7ba12 Revert "remove extra import"
This reverts commit 47c66162ac.
2021-04-06 10:29:07 -04:00
Sander Moolin
47c66162ac remove extra import 2021-04-06 10:28:45 -04:00
Sander Moolin
2fe99ca3ff new stats component 2021-04-06 10:28:04 -04:00
Kevin Levron
bd733970af export missing PlaneGeometry 2021-04-05 23:25:01 +02:00
Kevin Levron
a6a11bfbbd move gem, mirror, refraction meshes (#39) 2021-04-05 23:23:58 +02:00
Kevin Levron
c4d36904c4 move onBeforeRender, add onAfterRender (#38, #40) 2021-04-05 23:12:08 +02:00
Kevin Levron
c373adc7df simple cannonjs component 2021-04-05 19:47:31 +02:00
Kevin Levron
f6ed7bac92 add userData to Object3D 2021-04-05 01:14:06 +02:00
Kevin Levron
8121ed0009 simple vr button 2021-04-04 23:33:57 +02:00
Kevin Levron
abcc930246 wip 2021-04-04 23:08:17 +02:00
Kevin Levron
42cdb9fb53 add pointer shortcut 2021-04-04 22:29:57 +02:00
Kevin Levron
714b4776d7 fix slider2 2021-04-04 22:00:48 +02:00
Kevin Levron
31cf5e99f2 change default pointer positions 2021-04-04 21:59:57 +02:00
Kevin Levron
db5aca7538 defineComponent for components (#10) 2021-04-04 21:06:06 +02:00
Kevin Levron
d506b3333e remove shaders from tools 2021-04-04 21:04:56 +02:00
Kevin Levron
2dae67458f defineComponent for model loaders (#10) 2021-04-04 21:02:46 +02:00
Kevin Levron
98c74aa1c4 defineComponent for effects (#10) 2021-04-04 21:02:21 +02:00
Kevin Levron
a1d786297c defineComponent for materials (#10) 2021-04-04 20:42:35 +02:00
Kevin Levron
09290f9d88 defineComponent for lights (#10) 2021-04-04 20:41:11 +02:00
Kevin Levron
8eff7c1728 simple xr support 2021-04-03 23:57:46 +02:00
Kevin Levron
c900286de8 simplify geometries 2021-04-03 23:12:38 +02:00
Kevin LEVRON
62f47d10aa
Merge pull request #36 from SaFrMo/rectarealight-fix
rectarealight helper fix
2021-04-03 22:55:27 +02:00
Kevin Levron
168289c641 defineComponent for meshes and simplify (#10) 2021-04-03 22:54:11 +02:00
Sander Moolin
194fd54f04 rectarealight helper fix 2021-04-03 16:47:18 -04:00
Kevin Levron
885268fede defineComponent for core components (#10) 2021-04-03 22:19:57 +02:00
Kevin Levron
f6ecd087fb defineComponent for geometries (#10) 2021-04-03 22:06:41 +02:00
Kevin Levron
a11a6cecf4 move tools (fix rollup) 2021-04-03 21:43:40 +02:00
Kevin Levron
9eb6bac736 improve pointer 2021-04-03 21:42:52 +02:00
Kevin Levron
9214198e62 fix typo 2021-04-03 11:19:13 +02:00
Kevin Levron
1da38e4884 remove unneeded material dispose 2021-04-03 02:25:35 +02:00
Kevin Levron
ed985ed652 fix $parent 2021-04-03 02:04:07 +02:00
Kevin Levron
8c5674b48f intersectMode for raycaster 2021-04-03 00:59:58 +02:00
Kevin Levron
d11c2fe247 intersectMode (#35) 2021-04-02 23:22:19 +02:00
Kevin Levron
75b34b23c5 camera cs 2021-04-02 23:01:58 +02:00
Kevin Levron
4b2564baf8 raycaster component onClick 2021-04-02 23:00:36 +02:00
Kevin Levron
acbcd0fb50 improve pointer / raycaster (#34) 2021-04-02 22:38:37 +02:00
Kevin Levron
0a7086398f remove raycaster component 2021-04-02 15:02:06 +02:00
Kevin Levron
4336969434 refactore mesh events (wip) #34 2021-04-02 14:57:03 +02:00
Kevin Levron
9583cd93ed cs 2021-04-02 14:02:22 +02:00
Kevin Levron
afcf13b873 refactore mesh events (wip) #34 2021-04-02 13:56:03 +02:00
Kevin Levron
9cf540b0b7 fix SSAOPass (cs and unneeded resize) 2021-04-01 22:31:57 +02:00
Kevin Levron
36a7e7f519 fix EffectPass (emits) 2021-04-01 21:54:58 +02:00
Sander Moolin
6d4c2fe849 remove extra docs 2021-03-26 13:37:53 -04:00
Sander Moolin
c4679c6d1a click on raycaster 2021-03-26 13:37:15 -04:00
Sander Moolin
808d32b83a click on object3d 2021-03-26 12:38:11 -04:00
Sander Moolin
50d158c7c6 more docs 2021-03-26 12:25:29 -04:00
Sander Moolin
f1b9c13c94 docs wip 2021-03-26 12:21:26 -04:00
Sander Moolin
1fbbed6380 wip on raycaster changelog 2021-03-26 09:56:18 -04:00
Sander Moolin
157d918728 Merge branch 'upstream' into raycast-update 2021-03-26 09:40:49 -04:00
Sander Moolin
aa0bb91949 Snapshot 2021-03-26 09:39:58 -04:00
Sander Moolin
18b425ff50 remove extra code, formatting 2021-03-26 09:15:14 -04:00
Sander Moolin
2b917a52e6 teardown listeners, object pool, renderer mouse leave event 2021-03-25 14:03:28 -04:00
Sander Moolin
c325d47617 note on touch 2021-03-25 10:12:11 -04:00
Sander Moolin
0eb03737de fix raycaster scoping 2021-03-25 10:11:36 -04:00
Sander Moolin
09d5248f24 mousemove element fixes 2021-03-25 10:06:22 -04:00
Sander Moolin
136ec03c07 snapshot 2021-03-25 09:36:02 -04:00
Sander Moolin
abbe3d433c updated tools location 2021-03-25 09:24:30 -04:00
Sander Moolin
e622bedc6d wip on per-object raycasting - starting raycaster at vec2(infinity, infinity) to prevent false positive on init 2021-03-23 13:32:30 -04:00
Sander Moolin
cc16eae503 remove extra imports 2021-03-23 13:00:41 -04:00
Sander Moolin
975e0661b3 update event order 2021-03-23 09:41:32 -04:00
Sander Moolin
cfbca7934b fix custom onBeforeRender 2021-03-22 15:40:33 -04:00
Sander Moolin
6a6080dfd0 adding mouse and touch 2021-03-22 15:38:02 -04:00
Sander Moolin
10ea7d445d more notes 2021-03-22 14:58:22 -04:00
Sander Moolin
26e0ca6063 optimize notes 2021-03-22 14:57:22 -04:00
Sander Moolin
68d7bd19ea wip on raycaster 2021-03-22 14:56:24 -04:00
Sander Moolin
6bf383d6a6 Setup for raycaster 2021-03-22 09:30:56 -04:00
Sander Moolin
e66c347e69 update cameras to extend base component and render slot 2021-03-22 09:30:25 -04:00
Sander Moolin
132950301c tiltshift pass update 2021-03-21 14:52:30 -04:00
Sander Moolin
d67805e6bd pass ready events on all pass types 2021-03-21 14:49:41 -04:00
Sander Moolin
7887f2266a updated hmrID 2021-03-20 23:33:32 -04:00
Sander Moolin
de34a48d8a added ssao pass 2021-03-20 23:26:47 -04:00
Kevin Levron
eb1ca16b8a improve instanced mesh 2021-03-20 21:16:24 +01:00
Kevin Levron
f90cb8d6f8 add created event (wip) 2021-03-20 21:05:27 +01:00
Kevin LEVRON
2be60d1fe1
add else 2021-03-20 18:03:10 +01:00
Sander Moolin
5134ff91e6 ready event added to object3d 2021-03-19 23:56:21 -04:00
Kevin Levron
27969ea3bc export Object3D 2021-03-16 21:54:48 +01:00
Kevin Levron
11f83fb766 add PlaneGeometry 2021-03-15 22:20:30 +01:00
Kevin Levron
17d5a03d8b BufferGeometry => Geometry 2021-03-15 22:17:15 +01:00
Kevin Levron
eb40499600 fix typo 2021-03-15 21:46:04 +01:00
Kevin Levron
56479333da remove stencilBuffer 2021-03-15 20:44:50 +01:00
Kevin Levron
df08f3077c refactor geometries and meshes 2021-03-15 20:39:24 +01:00
Kevin Levron
5ebe40b962 cylinder 2021-03-15 20:01:08 +01:00
Kevin Levron
680e5a7d49 cone 2021-03-15 19:58:28 +01:00
Kevin Levron
3ed539553a box 2021-03-15 19:55:04 +01:00
Kevin Levron
d4e7ac476f mesh 2021-03-15 19:54:55 +01:00
Kevin Levron
606dcfa9c9 refactor circle 2021-03-15 19:54:33 +01:00
Kevin Levron
98a8c01ef1 refactor box 2021-03-15 19:41:07 +01:00
Kevin Levron
85d220f4f8 improve liquid plane 2021-03-15 19:13:55 +01:00
Kevin Levron
51071f1210 fix liquid effect for android 2021-03-15 19:13:33 +01:00
Sander Moolin
e31900d467 Change id to name in CubeTexture 2021-03-15 11:46:09 -04:00
Sander Moolin
99b888b27b - Remove ID from texture, replace with name
- Add uniform prop to texture, require use in shaders
2021-03-15 11:45:08 -04:00
Sander Moolin
3f40a59b73 Shader texture proof of concept 2021-03-15 00:33:27 -04:00
Kevin Levron
bf597573b2 improve liquid plane 2021-03-14 11:44:32 +01:00
Kevin Levron
458193be4a add liquid plane 2021-03-14 10:32:38 +01:00
Kevin Levron
e8d5414e1e improve models 2021-03-13 21:54:31 +01:00
Kevin Levron
6c37b1e1cd use color.set 2021-03-13 19:23:00 +01:00
Kevin Levron
291444eac6 fix default color 2021-03-13 19:22:29 +01:00
Kevin Levron
c09d2f9d8b clean light 2021-03-13 19:19:30 +01:00
Kevin Levron
9c9c08b11f export fbx model 2021-03-13 19:19:04 +01:00
Kevin Levron
57ae6facab add fbx model to plugin 2021-03-13 19:18:37 +01:00
Kevin Levron
c3d48d467d improve lights 2021-03-13 19:18:16 +01:00
Kevin Levron
d8cc705b99 improve gltf model 2021-03-13 16:59:53 +01:00
Kevin Levron
a283ac7c8f add fbx model 2021-03-13 16:59:41 +01:00
Kevin Levron
444060b91d wireframe props, fix #20, close #22 2021-03-13 16:41:01 +01:00
Kevin Levron
e5c2b3f947 add GLTFModel (wip) 2021-03-13 00:52:40 +01:00
Kevin Levron
a4eb25654c fix SubSurfaceMaterial (after #19) 2021-03-12 23:59:24 +01:00
Kevin Levron
8d66934fa9 remove console.log 2021-03-12 23:57:13 +01:00
Kevin Levron
e57a05de53 fix #21 (flatshading) 2021-03-12 23:54:55 +01:00
Kevin Levron
ebe2e799ed default app 2021-03-12 23:16:34 +01:00