Commit Graph

17466 Commits

Author SHA1 Message Date
minggo acaeed4e4e RenderView remove dependence of Root (#7034) 2020-08-05 09:36:18 +08:00
CocosRobot c1ef6790e4 [AUTO][ci skip]: updating cocos2dx_files.json (#2675)
* [ci skip][AUTO]: updating jsbinding automatically

* [AUTO][ci skip]: updating cocos2dx_files.json
2020-08-04 18:23:33 +08:00
pandamicro 343a7ffa19 memory pool data bindings (#2658) 2020-08-04 18:07:53 +08:00
Knox 644632a58d Fix label.string cannot be set to null or undefined. (#7069) 2020-08-04 17:11:33 +08:00
coulsonwang 9b5606b0fc impl render queue (#2668) 2020-08-04 17:04:15 +08:00
Myway 77186a5c5b lightmap instancing (#7070)
* lightmap instancing

* fix planar shadow instancing
2020-08-04 16:58:47 +08:00
PP a34d288178 remove properties in EditBox (#7066)
* remove properties in EditBox component

* reorder display

* remove alwaysOnTop on editbox impl
2020-08-04 14:16:30 +08:00
Yun Hsiao Wu afeb83e9a6 native pools (#7028) 2020-08-04 14:14:56 +08:00
Yun Hsiao Wu d0adc24bb8 vk: android adapt (#2667) 2020-08-04 09:56:02 +08:00
PP f9a6fd59b2 error when design resolution is invalid (#7063) 2020-08-03 19:17:53 +08:00
Knox 73add8a51b sync 2d color toHEX api (#7062) 2020-08-03 19:17:26 +08:00
jiaxin.lai 65b0478c69 v1.2 new physics features (#7037)
* 3d v1.1.1-exp physics expriment (#6787)

* activate when not awake (#6781)

* activate when not awake

* cannon too

* off event listener when onDestroy

* add clearVelocity & clearForces

* add CC_CONFIG to ammo\cannon

* add convex mesh & reuse mesh

* cache enable false by default

* terrain collider

* cone collider

* fix scale of ammo box & sphere

* simple collider

* add worldBounds & boundingSphere to collider

* add clear*** to rigid body

* enhance physics material

* enhance event

* plane collider

* stash

* tweaks

* update @cocos/ammo to v1.0.7-beta.1

* typing

* enchance update shape dynamic

* absolute scale cannon-box

* expose allowsleep

* fix warning of generate declaration

* remove physics_builtin

* DO NOT MERGE

* Better reuse

* Correct construct and deconstruct

* avoid ammo memory leaks

* minor refactor contact data

* fix cannon terrain tileSize

* stash

* optimize auto wakeup

* [Ammo] fix update by re add

* 400~

* overwrite ArrayCollisionMatrix.prototype.reset

* Export enum by namespace

* stash

* fix remove child shape of btCompound

* fix event with CCD

* dynamic instantiate

* STASH

* add group to rigid body

* update attachedRigidBody of collider in editor

* stash physics config

* tweaks of ammo config

* stash

* stash

* collision matrix

* stash

* rename deltaTime to fixedTimeStep

* group mask collider

* allow get mask

* set default group to Layers.Enum.DEFAULT

* add group change fallback

* cannon collision matrix

* fix

* update @cocos/ammo to 1.0.7-beta.2

* more prop

* fix

* disable on 1.1.1-exp

* tweaks

* fix circular dependency

* tweaks

* rename simple to simplex

* rename collider -> colliders

* stash

* ammo p2p

* hinge constraint

* adapt cannon p2p pivotB

* ammo p2p setPivotB

* constraint

* tweaks

* remove macro of physics

* refactor physics selector

* import ammo from ammo-instantiated

* update @cocos/ammo

* update @cocos/cannon
2020-08-03 11:00:07 +08:00
cary deb892b4f6 Pipeline refactoring. (#6999)
* Pipeline refactoring.

* delete import

* Fix some formatting issues.

* modify serialization of pipeline

* delete asset

* delete some api

* delete stage asset

* refine base pipeline

* fix ci error

* delete render context

* fix ci

* delete renderQueue from base class

* add base line

* add pipeline type

* modify frametime to pipeline

* delete root time

* modify type to tag

* revert change of frametime

* add initialize return
2020-08-03 10:36:49 +08:00
Leslie Leigh (李的序) aeced26917 Solve duplicated menu issue (#6973) 2020-08-02 14:53:31 +08:00
PP 3ed7c48523 remove polyfill in engine (#7045) 2020-08-01 17:43:46 +08:00
PP a30032e38a fix resize widget on orientation changed (#7056) 2020-08-01 17:37:55 +08:00
Yun Hsiao Wu ed2063a0de disable depth texture for iOS bytedance (#7051) 2020-08-01 15:43:32 +08:00
CocosRobot fa48adf54b [AUTO][ci skip]: updating cocos2dx_files.json (#2666) 2020-07-31 18:04:40 +08:00
minggo 694e70aef2 do not bind Device::getInstance() (#2665) 2020-07-31 17:36:10 +08:00
SijieWang 0678150d85 Prevent tampering with clickEvent.componentId data (#7052) 2020-07-31 16:57:33 +08:00
minggo 8851495456 Native renderer (#2662)
Refactor RenderPipeline/RenderStage/RenderFlow
2020-07-31 16:52:25 +08:00
Knox 0ffa00f2cc add safe area component for 3d-tasks/issues/3760 (#7020)
* add safe area component for 3d-tasks/issues/3760

* refine

* add cc.SafeAreaComponent to sealed-global-variables.json

* add canvas-resize event
2020-07-31 08:46:49 +08:00
Yun Hsiao Wu 941e44e826 fix node transform update during deactivated period (#7047) 2020-07-31 08:42:47 +08:00
PP 339554141a Revert "sync view code (#7042)" (#7049)
* Revert "sync view code (#7042)"

This reverts commit c2b46ae343.

* update
2020-07-31 08:38:23 +08:00
PP c2b46ae343 sync view code (#7042) 2020-07-30 09:35:42 +08:00
PP 66e4933d69 Object.getOnwPropertyDescriptors polyfill for baidu browser (#7040) 2020-07-30 09:34:48 +08:00
ChiaNing 8085684e9f CC_BYTEDANCE add (#7033) 2020-07-30 00:41:27 +08:00
Yun Hsiao Wu 9c41f9aa65 dynamic state flag bits (#2660) 2020-07-29 18:15:48 +08:00
cary 7a553576ef Fix the particle build error when culling checked. (#7031) 2020-07-27 22:26:20 +08:00
Yun Hsiao Wu 7304eb37b2 vk: all buffer updates need staging buffer (#2657) 2020-07-27 10:20:56 +08:00
CocosRobot 16440fc9cb [AUTO][ci skip]: updating cocos2dx_files.json (#2656) 2020-07-24 18:26:30 +08:00
Yun Hsiao Wu be439fd33d vk: descriptor hub (#2652) 2020-07-24 18:08:16 +08:00
coulsonwang a43d408a89 fix shadow render texture usage (#7025) 2020-07-24 13:54:55 +08:00
Yun Hsiao Wu 606c5d21fa fix gfx texture info naming (#6998)
* fix gfx texture info naming

* move instanced/bathced buffer out from pass
2020-07-24 11:31:43 +08:00
jiaxin.lai 7d13f6c321 reset gfx texture unit cache when splash destroy (#7021) 2020-07-23 19:56:08 +08:00
Yun Hsiao Wu e00b8df7af fix iOS 10 rendering issue (#7017) 2020-07-23 19:46:25 +08:00
zheng han de4b2f9d83 update effects (#7022) 2020-07-23 16:17:50 +08:00
pandamicro 40bcf73f60 Remove useless macros (#7016) 2020-07-23 10:32:30 +08:00
pandamicro 0538b9644e Update engine version (#7015) 2020-07-22 22:56:58 +08:00
pandamicro 43017a05c0 Update effects (#7014) 2020-07-22 15:19:24 +08:00
minggo 6a17148d40 use .cpp/.h for source file suffix (#2654) 2020-07-22 15:00:28 +08:00
Leslie Leigh (李的序) 7120e7cfb7 Reduce the usage of Object.getOwnPropertyDescriptors (#7005)
* Reduce Object.getOwnPropertyDescriptors

* Optimize
2020-07-22 13:35:45 +08:00
troublemaker52025 d26ce6b78b Add Shadow map (#6972)
* add easy shadow

* update

* update

* manage pso

* manage psoCI array

* solve a bug

* Optimization

* depth test is not accurate

* Conflict resolution

* Conflict resolution

* solve pr

* optimization

* update

* optimization

* optimization
2020-07-21 18:42:33 +08:00
GengineJS 72f14dc806 [Feature] Adding isPlaying judgement to support the function of gameview (#6990)
* [Modify] the systemevent adds the function of isplaying judgment

* [Feature] the ui adds the function of isplaying judgment

* [Modify] Add GameView environment

* [Optimize] Optimize the gameView conditions

* [Optimize] Complement the gameView environment
2020-07-21 17:36:07 +08:00
Leslie Leigh (李的序) a8771d443b Fix AnimationState.prototype.sample can not sample if animation is motionless (#6989) 2020-07-20 14:06:54 +08:00
ChiaNing 5db9e62aa3 game.restart fix (#6980)
* game.restart fix

* update

* remove pause on restart
2020-07-20 13:31:34 +08:00
Leslie Leigh (李的序) 8f1a22812a Fix Mesh.prototype.readAttribute, Mesh.prototype.copyAttribute (#6988) 2020-07-20 08:44:50 +08:00
lsybblll 83d7133c4c fix audio sometimes not work in wkwebview (#6987)
fix audio wich use player-web sometimes not work in wkwebview

场景:打包web-mobile,在ios的wkwebview中加载。
问题1:预加载音频时,this._context.state为running,但是播放的时候this._context.state为interrupted。
问题2:切到后台再切回,this._context.state为interrupted。
解决方案:如果在播放的时候,如果状态为interrupted,强制resume一下。
相关信息:https://github.com/goldfire/howler.js/pull/928
2020-07-19 16:04:36 +08:00
CocosRobot 1665904c65 [ci skip][AUTO]: updating jsbinding automatically (#2650) 2020-07-17 17:52:07 +08:00
minggo 581aca5da0 Refactor fileutils (#2649) 2020-07-17 15:45:15 +08:00