Commit Graph

9634 Commits

Author SHA1 Message Date
黄森斌 2b390dab29 update internal db prefab meta version (#7556) 2020-10-21 16:21:26 +08:00
hujf 4d90d5f674 Update distance.ts (#7558)
碰撞检测有问题
2020-10-21 16:08:49 +08:00
troublemaker52025 63fda61f4e fix shadow.far not enough (#7548)
* fix shadow.far not enough

* Add restrictions

* Remove duplicate code
2020-10-21 15:42:49 +08:00
Jare Guo da6ec26b52 fix sync instantiate-jit (#7550)
* Refine type define

* Fix TypedArray instantiation in Prefab (sync commit 0361c4eb4fe09021b8cecb8d2122fa05220e68fa)

* resign instantiate-jit #5114
2020-10-16 23:41:58 +08:00
jiaxin.lai 5589030fc5 tweaks (#7544) 2020-10-16 14:00:44 +08:00
ChiaNing eaaece1bf5 ui batch marge for stencil (#7540) 2020-10-16 14:00:22 +08:00
Myway fd6cfb3b47 Fix terrain receive shadow and load layer texture (#7543)
* fix terrain receive shadow

* fix load layer texture

Co-authored-by: Myway3D1 <404793124@qq.com>
2020-10-16 13:50:18 +08:00
Myway 40f053f31e fix terrain receive shadow (#7535)
Co-authored-by: Myway3D1 <404793124@qq.com>
2020-10-15 17:29:12 +08:00
Jare Guo a0a992de5d remove asserts from addChild & sync 2D changes (#7479)
* remove asserts from addChild

* expose js._registeredClassIds & js._registeredClassNames (sync #3174)

To unload scripts dynamically.
Also revert part of changes from https://github.com/cocos-creator/engine/pull/3204/files#diff-cabe5229c3c6e31339220008e54fe853L421

* remove unused code (sync #3174)

* minor tweak (sync #3421)

* should not invoke component if destroy() called before node activating (sync #3430)

* node should removed and destroyed with scene (sync #3456 #3483)

* fix WebGL detection on Android browsers (sync #3510)

* remove redundant right shift for bitwise operation (sync #3754)

* fix label blur when using dark font color (sync #3949)

* refine tooltip of Block Input Event (sync #4053)

* fix IE/Edge exception when output log/warn before engine initialization(sync #4447, #4500)

* sync class, attribute (#4689, #4712, #4781, #4712)

* fix loading unknown texture format (sync #4820)

* prefer toLowerCase to toLocaleLowerCase + sync #5114

* optimize bezier calculation (sync #5155)

* fix potential memory leak in scene-editor (sync #5643)

* fix _posDirty error of Mask on native platform (sync #6168)
2020-10-15 17:28:14 +08:00
jiaxin.lai ce7569cbe7 correct ammo kinematic object (#7534) 2020-10-15 16:53:44 +08:00
troublemaker52025 82cc28847b add terrain shadow (#7500)
* add terrain shadow

* update

* update

* update

* delete temp source code

* Optimize the auto shadow

* shadow 和 0 号对齐

* add reciveshadow control

* cancel

* fix shadow effect display error

* update

* use 1.0, doesnt use 1 in glsl

* update effects

* change bbMin  && bbMax use Number.MAX_VALUE && Number.MIN_VALUE

* update

* update
2020-10-15 16:48:44 +08:00
JoneLau 69e65b848a adjust the Graphics structure to support continuous data filling (#7524)
* Revert "adjust the Graphics structure to support continuous data filling (#7523)"

This reverts commit b86f3ccec1.

* adjust the Graphics structure to support continuous data filling (#7359)
2020-10-14 22:35:54 +08:00
JoneLau b86f3ccec1 adjust the Graphics structure to support continuous data filling (#7523) 2020-10-14 11:54:15 +08:00
troublemaker52025 7a697eeadc fix sphere.margeAABB bug (#7518)
* fix sphere.margeAABB bug && Optimize automatic shadow calculation

* Even if the obstruction is not in the field of view, the shadow is still visible

* optimization,and avoid using sphere.radius < 0

* Avoid creating aabb repeatedly

* update
2020-10-14 11:20:38 +08:00
Myway 0b1f4d316e 3d v1.2 terrain support dynamic lighting (#7510)
* fix terrain bound error, terrain support dynamic lighting

* fix terrain fog

* standard surface add lighting map info

* Revert pcf filter

Co-authored-by: Myway3D1 <404793124@qq.com>
2020-10-13 18:01:03 +08:00
Myway 7e1916973b fix terrain bound error, terrain support dynamic lighting (#7505)
* fix terrain bound error, terrain support dynamic lighting

* fix terrain fog

Co-authored-by: Myway3D1 <404793124@qq.com>
2020-10-12 15:14:12 +08:00
troublemaker52025 8407e716ac auto-shadow-info (#7404)
* auto-shadow-info

* add bais control

* update control name

* merge cc_shadowPCF(Vec2) && cc_shadowSize(Vec2) to cc_shadowInfo(Vec4)
2020-10-11 17:27:53 +08:00
ChiaNing 88ced2665e UI material stencil state change bug fix (#7497) 2020-10-11 17:25:25 +08:00
jiaxin.lai 17866af905 tweaks tooltip of isTrigger (#7485) 2020-10-10 14:17:41 +08:00
troublemaker52025 3375a5cf15 Shadow optimization (#7459)
* toon receives shadow

* fix gfx state cache

* 背面消影

* merge cc_ShadowPCF && cc_ShadowMapSize to cc_ShadowInfo;  add bias to shader and editor

* update

* merge pr #7452

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

* reomve atten; use NL

Co-authored-by: Yun Hsiao Wu <inheritorofgalaxy@gmail.com>
2020-09-30 15:36:01 +08:00
Leslie Leigh (李的序) 21a6bb135a Optimize morph rendering (#7436) 2020-09-30 15:24:29 +08:00
yinkaile 6096ec001e add type definition to tween (#7368) 2020-09-30 15:22:18 +08:00
pandamicro 30662bd702 Merge pull request #7464 from pandamicro/3d-v1.2
Merge v1.1 into v1.2
2020-09-28 18:02:01 +08:00
pandamicro 27e36c1179 Merge remote-tracking branch 'origin/3d-v1.1' into 3d-v1.2
# Conflicts:
#	cocos/core/math/quat.ts
#	cocos/core/math/rect.ts
2020-09-28 17:55:37 +08:00
ChiaNing 15a1806d18 API doc format change (#7456) 2020-09-28 16:52:52 +08:00
Knox 22d3869788 fix set font size invalid in rich text (#7457) 2020-09-28 10:39:28 +08:00
pandamicro 455fa20193 Revert "create terrain block bound (#7445)" (#7458)
This reverts commit dd43404370.
2020-09-28 10:39:01 +08:00
SijieWang cd9ae84ce7 fix cc.SkeletalAnimationComponent.Socket (#7453) 2020-09-27 17:43:19 +08:00
ChiaNing 34785205ff Editbox event bug fix (#7451) 2020-09-27 16:28:03 +08:00
Myway dd43404370 create terrain block bound (#7445) 2020-09-26 22:16:14 +08:00
cary d2cd17532a Fix ui destroy error when ui flow not exist. (#7442)
* Fix ui destroy error when ui flow not exist.

* refine code
2020-09-25 17:24:43 +08:00
troublemaker52025 365313d3ea model initialize (castShadow = false && _receiveShadow = true) (#7441) 2020-09-22 20:00:48 +08:00
ChiaNing 8e0857d9a2 compressTexture bug fix on native (#7440) 2020-09-22 16:30:19 +08:00
yinkaile bd8643dbc6 change action hash targets to Map (#7438)
* change action hash targets to Map

* refine code
2020-09-22 14:39:50 +08:00
troublemaker52025 e7ada483a8 Shadow range culling for 3d-v1.2 (#7439)
* shadowMap range culling

* fix the light follows the position of the model

* using light node matrix
2020-09-22 14:26:56 +08:00
troublemaker52025 fa6a45aa1a fix shadow draw model back (#7431)
* fix shadow draw model back

* add effect.ts
2020-09-21 17:59:38 +08:00
ChiaNing 82f69e3a82 fix button interactable bug in editor (#7428) 2020-09-21 15:35:59 +08:00
Leslie Leigh (李的序) 587d1edb9d Fix animation cannot stop issue (#7408) 2020-09-21 15:22:04 +08:00
troublemaker52025 88455d9f95 shadow effect blur (#7391)
* shadow effect blur

* update

* add effects
2020-09-21 12:03:28 +08:00
cary d4a5f2c1b0 Fix the issue of pcf is not working when running. (#7390) 2020-09-21 12:02:32 +08:00
cary eef4480971 Fix the decorators error in pipeline. (#7425)
* Fix the decorators error in pipeline.

* refine code
2020-09-21 12:01:26 +08:00
ChiaNing bdf2487dd8 widget lock bug fix (#7416) 2020-09-21 11:51:53 +08:00
GengineJS 95985a4be7 [Optimize] Optimize FogInfo (#7420) 2020-09-21 11:49:43 +08:00
pandamicro 2ab84ea3ab Finish asset api translation (#7419) 2020-09-20 00:25:33 +08:00
ChiaNing eb649aeba2 fix iOS14 crash on getExtension (#7417)
(cherry picked from commit aaafb6681b49e5de3a49d354f3aa86457966c8c0)
2020-09-19 21:23:53 +08:00
cary 6281d8096d Fix the issue of engine restart. (#7410)
* Fix the issue of engine restart.

* delete resume

* add resume
2020-09-18 23:25:31 +08:00
jiaxin.lai 13b6104816 avoid the different target with the same UUID (#7403) 2020-09-18 20:34:49 +08:00
ChiaNing d850f8fb4f iOS wechat compressedTexImage2D bug fix (#7409) 2020-09-18 15:18:12 +08:00
PP 93d3d8c5de fix sharedCanvas (#7405)
* fix sharedCanvas

* update

* update
2020-09-18 14:14:15 +08:00
pandamicro 4b84548381 Finish core API translation (#7397) 2020-09-17 00:06:19 +08:00