Commit Graph

10188 Commits

Author SHA1 Message Date
cary fcbe208a9f Fix the crash of render texture scene on metal. (#8056) 2020-12-30 20:58:50 +08:00
JoneLau cc84d2af46 activate model before drawing to avoid the user from filling the data without the node being activated (#8053) 2020-12-30 19:51:57 +08:00
PP 680ac7fb17 fix open data context dpr (#8050)
update

update
2020-12-30 19:01:29 +08:00
ChiaNing 0a890af46d game pause update (#8047)
* game pause update

* change setAnimFrame postion
2020-12-30 17:44:18 +08:00
黄森斌 bd21579385 update internal-db effect meta file (#8052) 2020-12-30 17:39:22 +08:00
Yun Hsiao Wu 0e1031e852 webgl2: immutable textures (#8051) 2020-12-30 17:31:15 +08:00
jiaxin.lai fadf3d9b00 support dynamic select physics backend (#8048)
* support dynamic select physics backend

* skip physics ray group

* fix eslint

* lint
2020-12-30 15:47:06 +08:00
cary b1379ddeed Export pipeline class for editor. (#8049) 2020-12-30 15:46:43 +08:00
zheng han 33c427ebf4 keep prefabInfo of prefabInstance (#8046) 2020-12-29 21:02:41 +08:00
PP 1277f254d9 play audio on awake at the onEnable phase (#8045)
* play audio on awake at the onEnable phase

* fix code quality

* fix ci
2020-12-29 19:30:44 +08:00
zheng han 78e5b01774 fix prefab asset instaniate (#8044) 2020-12-29 17:19:14 +08:00
pandamicro b6c2ae7db9 Refactor Graphics impl.getRenderData to getRenderDataList (#8042) 2020-12-29 11:45:31 +08:00
JoneLau 47334c9c84 fix the problem that mask data is delayed to be updated by one frame (#8039)
* fix the problem that mask data is delayed to be updated by one frame

* fix ci
2020-12-29 10:29:48 +08:00
zheng han 53f8360a07 new prefab system (#8000)
* add prefab instance

* add prefab instance

* support add normal child in prefabInstance

* add prefabInstance check

* remove active restore

* remove unused method

* fix CI

* add children in prefabInstance

* format

* fix ci

* fix according to review suggestion

* add null check

* fix CI

* move prefabInstance into prefabInfo

* fix problem according to review
2020-12-28 21:49:27 +08:00
ChiaNing b85a367309 fix label bug (update UV when texture change) (#8041)
* fix label bug (update UV when texture change)

* Circular reference fix
2020-12-28 20:41:22 +08:00
Santy-Wang 77925094f2 avoid waiting too long when fps is is low (#8040) 2020-12-28 19:40:01 +08:00
Yun Hsiao Wu d2bb41a1d7 adapt gfx changes (#8019) 2020-12-28 17:23:06 +08:00
Leslie Leigh (李的序) f9cc7387f2 Add AnimationState.current, AnimationState.ratio (#8037) 2020-12-28 16:24:45 +08:00
Santy-Wang 45b452d392 refine 3.0 dragon-bones native sdk (#8035) 2020-12-28 16:19:07 +08:00
Knox e075f81f45 Fixed 2D particle system not rendering sprite frame reporting an error. (#8033)
* Fixed 2D particle system not rendering sprite frame reporting an error.

* fix eslint

* fix eslint

* refine code

* fix eslint
2020-12-28 14:12:20 +08:00
Leslie Leigh (李的序) 0dd04b4d3f Accessibility & Linting fix for AnimationState (#8034)
* Accessibility & Linting fix for AnimationState

* Update

* Update
2020-12-28 11:53:47 +08:00
ChiaNing 66555423da ui pass refactoring (#8024)
* ui pass refactoring

* native fix & blend hash update

* doc update
2020-12-26 18:42:14 +08:00
Knox e801634278 improve web view code (#8030) 2020-12-26 17:58:54 +08:00
ChiaNing 4461eb1d12 DynamicAtlas support (#8017)
* DynamicAtlas support

* CI fix
2020-12-26 14:28:30 +08:00
Leslie Leigh (李的序) 4d2b741a4a Bump typescript@4.1.3 (#8028) 2020-12-26 14:07:32 +08:00
Leslie Leigh (李的序) 886ead9842 Optimize WASM binary path emit (#8027) 2020-12-26 13:48:13 +08:00
Santy-Wang 75d8b8add2 Lint asset manager (#8002)
* lint asset manager and refine d.ts

* refine

* refine d.ts
2020-12-25 20:43:44 +08:00
PP 9fd8e6be28 optimize jsb.deivce.getDeviceOrientation (#8007) 2020-12-25 17:27:29 +08:00
jiaxin.lai d169d90713 support constraints auto-scaling (#8015)
* lint

* cannon constraint support auto-scaling

* fix kinematic/static body

* tweaks

* remove onLoad that was not necessary

* ammo constraint support auto-scaling

* physx joint refactor

* using fastRemoveAt
2020-12-25 16:36:18 +08:00
媛媛 e318e60827 support label and description for categories (#8022)
* support category

* remove module-division

* update

* revert .fbx.meta
2020-12-25 15:53:34 +08:00
jiaxin.lai 29a71884c1 fix tween when property equals 0 (#8018)
* fix tween when property equals 0

* more check

* tweaks
2020-12-25 15:44:19 +08:00
Leslie Leigh (李的序) 2756594747 Profiler -> Run Stats (#8021)
* Profiler -> Run Stats

* Update

* Update
2020-12-25 15:23:49 +08:00
cary 368fe4ca94 Set depthStencilAttachment store to discard. (#8016) 2020-12-25 14:36:47 +08:00
Leslie Leigh (李的序) 6b5a9b413a Features I18N (#8020) 2020-12-25 12:57:51 +08:00
jiaxin.lai 717fc2d73f destroy image on jsb (#8011) 2020-12-25 10:28:07 +08:00
PP 81182a87f8 adapt videoPlayer on OPPO (#8013) 2020-12-25 09:55:17 +08:00
JoneLau fc62709146 remove padding display, and fix safeMeasureText code hint (#8012) 2020-12-24 19:23:07 +08:00
echoooooo dabc6f2188 fix: _initEvents() called twice (#8010) 2020-12-24 19:12:04 +08:00
Santy-Wang ad4bff3988 Restructure Module (#7968)
* module restructure

* refine

* restructure module

* merge

* revert

* fix ci

* update import path of unit-test

* split 2d and ui

* add more module

* change audio adapter

* rename primitive

* config wechat plugin

* merge

* add category config

* merge

* merge
2020-12-24 19:07:26 +08:00
cary f15be6fe1e Modify the forward rendering process and remove UIFlow. (#7940) 2020-12-24 16:09:31 +08:00
jiaxin.lai 0dc393b884 3d physx (#8005)
* support physx physics engine

* tweaks

* stash contact event

* update @cocos/physx

* basic event impl

* stash

* support BYTEDANCE

* stash

* stash

* fix inertia

* PhysX mesh collider

* PhysX static trimesh geometry

* PhysX terrain collider

* add kinematic

* bytedance plane collider

* bytedance v2

* support trigger

* bytedance triangle mesh support

* raycast filter

* raycast support

* stash all

* stash

* center of mass

* stash

* stash fixed joint

* stash

* stash

* physx hinge joint

* physx distance joint

* tweaks

* tweaks

* bytedance raycast

* tweaks

* update mass

* tweaks

* tweaks

* joint

* stash

* bytedance adapters

* tweaks

* stash

* apply force/impulse

* add updateEventListener

* Fixed some loose usage

* add getShapeFlags/getShapeMaterials

* tweaks

* optimize bytedance adapter

* fix isStaticsOrKinematic

* support cylinder & cone

* contact normal

* update @cocos/physx to 1.0.0-beta.5

* rigid body tweaks

* add syncAfterEvents

* hinge constraint

* filter static - static

* ammo refactor

* cannon refactor

* ammo p2p constraint refactor

* update @cocos/ammo to 1.0.8

* lint ammo

* more lint

* docs

* tweaks

* avoid direct use globalThis
2020-12-24 13:45:03 +08:00
owen f811378b7f 3.0 spine native sdk adapter (#7999) 2020-12-24 10:25:34 +08:00
troublemaker52025 8a57007acb fix repeatedly created camera errors (#8006)
* fix repeatedly created camera errors

* protected map.geter()

* update
2020-12-23 19:17:50 +08:00
Leslie Leigh (李的序) a069eeca2f Optimize shader sources build (#7998)
* Optimize shader sources build

* Linting

* HTML5, WeChat branch

* Comment
2020-12-23 16:29:58 +08:00
Leslie Leigh (李的序) aa3cf70c04 Fix @cocos/build-engine: enumerate-dependent-chunks error (#8004) 2020-12-23 15:36:25 +08:00
Leslie Leigh (李的序) 1c9f4b44f7 Optimize ESLint CI: exclude deleting changes and non code file (#8003) 2020-12-23 13:31:53 +08:00
troublemaker52025 17c4946b66 Canvas split 2D camera (#7987)
* update

* update

* update

* update

* fix eslint error

* update

* update

* Add protection mechanism

* fix pr

* fix pr

* createCamera() changed public

* revert

* revert

* update

* fix  remove camera component error

* update

* update
2020-12-22 18:36:30 +08:00
pandamicro 9b75d50b1b Improve game mainLoop safety (#7796)
* Improve game mainLoop safety

* Fix ci

* Fix ci

* Fix game pause state set

* Fix game init timing

* Fix camera component imports

* Fix eslint warnings

* allow dangling underscores

* Fix more warning
2020-12-22 18:19:40 +08:00
yeshao2069 9c61746852 fix bug : when the page window changes, the content in the widget will not change (#7988)
* fix bug :

when the page window changes, the content in the widget will not change

* update

when the page window changes, the content in the widget will not change

* update

fix error

* update

Optimized writing
2020-12-22 11:48:54 +08:00
Knox 9a85d48a37 improve onLoadedMetadata in jsb-videoplayer (#7993) 2020-12-22 11:43:59 +08:00