Commit Graph

11527 Commits

Author SHA1 Message Date
Yun Hsiao Wu 8f6b6b3f48 binding mappings (#10013) 2022-01-21 10:07:56 +08:00
pandamicro 29b9eadd99 Merge pull request #9928 from holycanvas/v3.5.0-sync
V3.5.0 sync 3.4.1
2022-01-07 17:42:02 +08:00
santy-wang b4b8c9ab3a build effect 2022-01-06 16:18:11 +08:00
santy-wang 7ffe1bc031 Merge branch 'v3.4.1' of https://gitlab.cocos.net/publics/engine into v3.5.0 2022-01-06 14:41:28 +08:00
Leslie Leigh (李的序) d97e453b07 Fix decorator order issue in standalone mode (#9911)
* Fix decorator order issue in standalone mode

* Apply

* Update
2022-01-05 23:30:21 +08:00
SijieWang c392e019a2 [Feature] Prefab: Support the persistent (#9884)
Co-authored-by: Sijie <devhacker520@hotmail.com>
2022-01-05 23:28:41 +08:00
troublemaker52025 69cd9f5c23 fallback baidu not support shadow for v3.4.1 (#9897) 2022-01-05 23:27:11 +08:00
troublemaker52025 17e0e7ea7b Combing planar-shadow calculations for v3.4.1 (#9903)
* Combing planar-shadow calculations for v3.4.1

* update

* update
2022-01-05 23:26:23 +08:00
Yiwen 8402289d77 fix the bugs found in PR9854. (#9875)
* Add extra steps to the destroy functions to update the cached resources.
This will make sure that the resources in device.stateCache is valid.

* unbind a resource before destroying it

* remove unnecessary non-null assertion

* update the state after the destruction to make the process robust

* fix the bugs introduced in PR9854.
bug: forgot to update the active texUnit in stateCache.

* reduce the use of dot operator to improve performance.

* fix the bug introduced in the previous commit

* reduce the use of dot operator to improve performance
2022-01-05 23:20:47 +08:00
zheng han 334ee05d77 fix editorExtras of curve keyframe (#9905) 2022-01-05 14:08:27 +08:00
Leslie Leigh (李的序) ac49b8b6a0 Refactor communication between skinned mesh renderer and skeletal animation (#9787)
* Refactor communication between skinned mesh renderer and skeletal animation

* Update
2022-01-05 13:40:54 +08:00
Greg1129 fd5ca96299 fix bug bulitin default texture (#9916) 2022-01-04 17:05:11 +08:00
Leslie Leigh (李的序) 8e906c79a8 build-engine add chunk aliases to build result(cherry-pick #9894) (#9895) 2022-01-04 14:15:17 +08:00
timlyeee f5a6a64372 Jsb-event-handler for event dispatch (#9879) 2022-01-04 13:37:44 +08:00
zxx43 79abbd55b9 Fix particle index count 0 (#9885)
* check index count 0

* fix indent
2022-01-03 23:02:28 +08:00
PP a0f89df96c fix audio bugs (#9889)
* fix setting audioSource.clip as null

https://github.com/cocos-creator/engine/pull/9782

* destroy audio player

* use null instead of undefined

Co-authored-by: dream93 <dream_chou93@163.com>
2021-12-30 19:12:07 +08:00
Greg1129 6f3b1fae0c fix bug: remove all actions by tag (#9876)
* fix bug: remove all actions by tag

* add tween unit test

* add @internal comment

* fix using backward delete

* add commnets by eslint
2021-12-30 17:55:11 +08:00
jk20012001 2f6f50ec7f Fix skybox RGBE macro get invalid in startup and mipmap count is overrided (#9904)
* Fix skybox RGBE macro get invalid in startup
Fix mipmap count is overrided

* fix after apply diffusemap scene will not refresh
2021-12-30 17:53:45 +08:00
zhakesi a2bb27f2e4 fix readpixels (#9900)
* fix function readPixels height setting

* add paramter to receive pixel data for readPixels.

* use errorID

* modify error description

* fix import { errorID }
2021-12-30 14:16:30 +08:00
mu xiandong a8234cfb14 Update Scheduler API (#9815)
* Update Scheduler API

Sync 3.4.0

changeLog:
The delay parameter of schdule is in seconds and needs to be marked
Re https://forum.cocos.org/t/topic/126830

* fix eslint

fix eslint

* Update scheduler.ts

* Update scheduler.ts

* Update scheduler.ts

Co-authored-by: muxiandong <24754593@qq.com>
2021-12-30 10:03:36 +08:00
zhakesi 575b2caedd revert spine export (#9896) 2021-12-29 17:19:50 +08:00
zhakesi 36c13c190b V3.4.1 issue 10573 (#9892)
* fix export spine failed.

* import spine from spine-core.ts
2021-12-29 14:23:21 +08:00
Greg1129 5d3b5d64c8 modify builtin texture generation + particle unit test (#9841)
* modify builtin texture generation + particle unit test + particle system capacity issue 10417

* change texture format to RGBA8

* modify builtin texture generation

* modify format and remove particle parts out to another pr

* fix array buffer view generation
2021-12-29 10:35:57 +08:00
troublemaker52025 028b274ac0 Optimize fixedArea mode culling process for v3.4.1 (#9878) 2021-12-28 15:35:49 +08:00
黄森斌 b3babeab29 change ts template (#9883) 2021-12-28 14:28:30 +08:00
alpha f153b5cc1b fix Color.fromHex Bug (#9867) 2021-12-28 11:52:01 +08:00
PP fbde8d1e90 use lagacyPublic to marked deprecated public interface (#9859)
* use lagacy-public

* publish beta6

* remove jsDoc tag from constructor

* use legacyPublic

* publish beta 7
2021-12-28 11:48:10 +08:00
Zhang mingzhen 6601d1d2de Label string setter optimization (#9880)
* remove rebundant onDisable

* update label.string.setter and add unit test case

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-12-28 11:27:58 +08:00
Yun Hsiao Wu 437b5c3d81 material.copy accepts overrides (#9881) 2021-12-28 11:12:24 +08:00
fish9167 5ffe5aee23 Add GitHub Action (#9872)
* Add GitHub Action

Add GitHub Action: run test cases

* Update run_test_cases.yml

* Update run_test_cases.yml

* Update run_test_cases.yml

* Update run_test_cases.yml

* Update run_test_cases.yml

* Update run_test_cases.yml

* Update run_test_cases.yml

* Update run_test_cases.yml

retry github action

* Update run_test_cases.yml

updata npm

* Update run_test_cases.yml

* Update run_test_cases.yml

* Update run_test_cases.yml

* Update run_test_cases.yml

retry github action

* Update run_test_cases.yml
2021-12-28 11:08:31 +08:00
PP 3a3f1ea151 fix set frame rate on runtime (#9874) 2021-12-27 14:35:18 +08:00
minggo 4680589de7 detach from scene before destroying Model/Light (#9869) 2021-12-27 10:42:26 +08:00
ChiaNing 36a078e7cb Revert "Add extra steps to the destroy functions to update the cached resources. (#9854)" (#9873)
This reverts commit acb3fce607.

Co-authored-by: Yiwen <15225434259xue@gmail.com>
2021-12-24 19:26:02 +08:00
jk20012001 0c19b9a883 fix define syntax error (#9870)
* fix define syntax error

* fix toon shader syntax error
2021-12-24 17:36:47 +08:00
jk20012001 eb883997a1 Fix #10538: Android+WebGL PS struct variables has mediump precision (#9863)
* Fix #10538: Android+WebGL PS struct variables has mediump precision

* update compiled shaders

* review modification

* update compiled shaders
2021-12-24 11:01:54 +08:00
Zhang mingzhen 0624fb1d2e Mask not work with spine v3.4.1 (#9864)
* add condition spine preRenderComponent validation before autoMergeBatches

(cherry picked from commit 04fcebde46ec264c0f09e6afdcba54ae6935a1fc)

* add explanations

(cherry picked from commit 72f8439cfdeda28d4f9b944b4f3d5640bbd05fb3)

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-12-23 18:59:26 +08:00
troublemaker52025 bc7afddd4a fix shadow queue perfprmance for v3.4.1 (#9862)
* fix shadow queue perfprmance for v3.4.1

* update
2021-12-23 17:22:30 +08:00
jk20012001 c1146b813c Fix skeleton model receive shadow macro error and toon shadow display errors (#9836)
* 修复骨骼模型接受阴影的开关无效 及 toon shadow计算的错误

* toon精确判断背光面及强制所有面接受阴影

* toon使用参数来调节接受阴影的区域
2021-12-23 17:18:34 +08:00
PP 1f58fbff6c cache systemInfo on Cocos Play platform (#9856)
* cache systemInfo on Cocos Play platform

* resize swapChain
2021-12-23 11:40:00 +08:00
SijieWang eb3b2e3757 Update effect (#9858)
Co-authored-by: Sijie <devhacker520@hotmail.com>
2021-12-22 17:01:20 +08:00
Yiwen acb3fce607 Add extra steps to the destroy functions to update the cached resources. (#9854)
* Add extra steps to the destroy functions to update the cached resources.
This will make sure that the resources in device.stateCache is valid.

* unbind a resource before destroying it

* remove unnecessary non-null assertion

* update the state after the destruction to make the process robust
2021-12-22 16:06:22 +08:00
pandamicro decf7e92fa Merge pull request #9853 from holycanvas/v3.5.0-sync
sync v3.4.1
2021-12-22 16:01:31 +08:00
PP cc01fad918 support internal interface filter (#9797)
* support interface filter

* publish build-engine@4.2.20-beta.1

* update

* fix other type of statement

* publish @cocos/build-engine 4.2.20

* update lock

* remove `@internal` from constructor documentation

* change to internal_cc tag

* support target tag in interface-filter

* publish  4.2.21-beta.1

* remove `@private_cc` tag

* remove public internal interface

* remove public internal getter setter

* remove public declare internal property

* update

* remove `__editorExtrasTag__`

* remove public internal interface on `js`

* pulish @cocos/build-engine 4.2.21-beta.2

* change tag to `@deprecated_to_user`

* support `@deprecated_to_user`

* publish 4.2.21-beta.3

* finish change request

* change to marked_as_engine_private

* publish 4.2.21-beta.5
2021-12-22 12:55:45 +08:00
santy-wang 5899123ce0 Merge branch 'v3.4.1' of https://gitlab.cocos.net/publics/engine into v3.5.0 2021-12-22 10:31:17 +08:00
Yun Hsiao Wu 92797e1efa disable multi_draw extension on mobile (#9835) 2021-12-21 17:53:05 +08:00
zxx43 7ece432cbc Improve gpu particle performance (#9847)
* improve gpu particle performance

* fix eslint error
2021-12-21 17:50:34 +08:00
PP 10634ea544 resctrict DPR on Web platform (#9850) 2021-12-21 17:21:25 +08:00
Zhang mingzhen de78f6c7a8 optimization: set same value attribute v3.5 (#9744)
* return process when same value attributes are assigned

* add warn log in ErrorMap

* optimize upper character

* remove warn when same texture is assigned

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-12-21 17:20:41 +08:00
Zhang mingzhen bb55156164 add decorator “serializable” (#9848)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2021-12-21 16:29:47 +08:00
李吉林 303c3ee478 safely destroy the geometry data (#9849) 2021-12-21 15:21:33 +08:00