1404 Commits

Author SHA1 Message Date
pissang
d852cb7baa optimize texture source management.
Use unified source property.
Use checkReady promise instead of onload and onerror callbacks
2023-02-18 13:44:42 +08:00
pissang
c3e9ea48df export glmatrix 2023-02-18 10:47:37 +08:00
pissang
9e6d8a60d2 export more types 2023-02-18 10:38:45 +08:00
pissang
2b4c823761 export more types 2023-02-18 10:33:04 +08:00
pissang
1dfa766b07 optimize code 2023-02-18 10:31:19 +08:00
pissang
921ea294a8 support persist texture in composite node 2023-02-18 10:23:04 +08:00
pissang
e9f3b507b3 rename GLRenderer to GLPipeline 2023-02-18 08:15:51 +08:00
pissang
0f7fa66813 fix type 2023-02-17 22:03:07 +08:00
pissang
530ee1852c other attribute type should not be removed 2023-02-17 21:51:17 +08:00
pissang
db11d9b9ab support int for geometry attribute 2023-02-17 21:47:24 +08:00
pissang
ef6b8d2a27 fix type 2023-02-17 18:56:11 +08:00
pissang
b04cfc008b fix texture2d array 2023-02-17 18:32:49 +08:00
pissang
56a9a407ad support 3d texture 2023-02-17 17:19:32 +08:00
Yi Shen
5b08297737
Simplify shader uniform type. No complex conversions. (#137)
* use array property instead of 'v' postfix to simplify the type

* simplify shader uniform type and material uniform type. no conversion

* add strcut uniform type and optimize code

* remove struct
2023-02-16 22:58:23 +08:00
pissang
c4ec159fef remove circleci 2023-02-15 22:15:03 +08:00
pissang
aae5f199cc fix type 2023-02-15 22:11:02 +08:00
pissang
b6b110421c release alpha.10 2023-02-15 22:09:57 +08:00
Yi Shen
0030d7db95
Switch to WebGL 2.0 (#136)
* wip: upgrade to webgl2

* update shaders to version 300

* fix index for texture must be constant in webgl 2

* remove npot

* fix naming conflicts of using texture previously

* fix wrong internal format in float textures.

* fix depth texture format

* fix texture enabled define

* fix instancing

* fix some cases

* fix some case use extension

* fix frag depth

* tweak

* generate mimap for NPOT texture

* remove debugger code

* fix alchemyao case

* fix ssr case

* not generate mipmap in compositor by default.
2023-02-15 22:09:08 +08:00
pissang
bf046c5154 fix Material#isDefined 2023-02-12 20:28:41 +08:00
pissang
9b042bf9ff fix window not defined 2023-02-12 19:48:38 +08:00
pissang
64af87bdce release 2.0 alpha.8 2023-02-12 19:43:43 +08:00
pissang
3ba3c01da3 fix pointer event doesnt have touches info on iOS 2023-02-12 19:32:58 +08:00
pissang
f76c23b7e4 publish 2.0.0-alpha.7 2023-02-10 18:53:52 +08:00
pissang
afe48a3670 not trigger click event when mouse moved long distance 2023-02-10 15:43:30 +08:00
pissang
7615df1eea not trigger click event when target changed 2023-02-10 15:39:52 +08:00
pissang
15f208896d Only check geometry in ray picking. Needs to set ignorePicking for the invisible mesh 2023-02-10 14:53:00 +08:00
pissang
38f1ad0cc0 fix vite config 2023-02-09 15:50:06 +08:00
pissang
802fb28c6d fix distance in rayPicking 2023-02-09 15:49:58 +08:00
pissang
f5e6533c92 fix build command 2022-12-01 16:42:21 +08:00
pissang
76e00f11e4 release 2.0.0-alpha.6 2022-12-01 16:41:01 +08:00
pissang
961b15e90b app: optimize event manager. 2022-12-01 16:40:50 +08:00
pissang
326c78d1c4 reverse some change 2022-11-30 18:27:34 +08:00
pissang
695050647d fix lint 2022-11-29 14:15:21 +08:00
pissang
1fe143de6e release 2.0.0-alpha.5 2022-11-29 14:14:23 +08:00
pissang
054d923c4e use pointer event in EventManager 2022-11-29 14:13:54 +08:00
pissang
20ac963a7e use pointer event instead of touch and mouse 2022-11-29 14:06:26 +08:00
pissang
6d75b1ead2 orbit: support shift with mouse buttons 2022-11-29 14:00:13 +08:00
pissang
a670c9ae63 canvas can be reused after renderer is disposed 2022-11-29 13:59:45 +08:00
pissang
ca8a057e77 export node as ClayNode 2022-11-29 13:59:02 +08:00
pissang
5c54f27882 app: eventmanager support camera so it can be used individually. 2022-11-29 13:58:42 +08:00
pissang
68269a027b Update pnpm-lock.yaml 2022-09-09 12:44:55 +08:00
pissang
84b74161ca bump 2.0.0-alpha.4 2022-09-09 12:37:33 +08:00
pissang
f5a5303d42 update to moderner build 2022-09-05 22:27:55 +08:00
pissang
63d546f83f update to alpha.3 2022-08-12 23:55:26 +08:00
pissang
acc1c1b0de fix(app): only dispose object that is removed from the scene.
The objects set to invisible will not be removed
2022-08-12 23:53:56 +08:00
pissang
b25103ac70 fix(render): fix disposed object to be rendered again will reuse the resource.
In the case that object switched between invisible and visible
2022-08-12 23:50:27 +08:00
pissang
a05371da72 chore: do clean build. release alpha.2 2022-07-29 16:52:01 +08:00
pissang
56b228f806 fix: fix wrong transform calc in getBoundingBox of group node 2022-07-19 14:39:19 +08:00
pissang
b2a8a19e30 type: optional filter in getBoundingBox 2022-07-19 14:00:33 +08:00
pissang
8b21e6f5a2 fix: buffers not updated when geometry is shared by multiple context. 2022-07-18 15:04:46 +08:00