Commit Graph

9425 Commits

Author SHA1 Message Date
pandamicro f81470706e Revert pso move into Instanced item 2020-08-13 10:59:00 +08:00
pandamicro 3b66332823 Merge remote-tracking branch 'origin/3d-v1.1.1' into 3d-v1.2
# Conflicts:
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/animation/animation-state.ts
#	cocos/core/game.ts
#	cocos/core/gfx/webgl/webgl-commands.ts
#	cocos/core/pipeline/instanced-buffer.ts
#	cocos/core/pipeline/render-instanced-queue.ts
#	cocos/core/platform/event-manager/input-manager.ts
#	cocos/core/platform/view.ts
#	cocos/core/renderer/core/pass.ts
#	cocos/core/renderer/scene/planar-shadows.ts
#	cocos/core/splash-screen-webgl.ts
#	cocos/core/utils/profiler/profiler.ts
#	cocos/particle/renderer/trail.ts
#	cocos/terrain/terrain.ts
#	package-lock.json
#	package.json
#	predefine.ts
#	scripts/build-engine/package-lock.json
#	scripts/build-engine/package.json
#	scripts/build-engine/src/index.ts
2020-08-12 15:53:52 +08:00
pandamicro 2327d9e6c7 Merge pull request #7114 from cocos-creator/3d
Sync some fixes from 3d branch
2020-08-11 16:06:15 +08:00
Leslie Leigh (李的序) 9b4f0ae688 Fix typo (#7102) 2020-08-10 16:05:34 +08:00
PP dbf372dde4 widget refreshScene after scene loaded (#7100) 2020-08-07 23:44:43 +08:00
SijieWang efc710f169 merge pipeline (#7096) 2020-08-07 14:57:14 +08:00
cary 7d77ea3dde Modify pipeline resourceization. (#7067)
* Modify pipeline resourceization.

* change to call setRenderPipeline only once.
2020-08-07 12:10:03 +08:00
Leslie Leigh (李的序) d0c276c941 @cocos/build-engine@3.0.2(bug fix update) (#7087)
* @cocos/build-engine@3.0.2(bug fix update)

* Update
2020-08-07 10:47:42 +08:00
Myway f5eb94f8b6 Support lightmap instancing & clamp terrain height (#7094)
* lightmap instancing

* fix planar shadow instancing

* clamp height
2020-08-06 22:24:53 +08:00
SijieWang fbb6c52314 Move internal assets to the engine (#7093) 2020-08-06 22:09:24 +08:00
ChiaNing 6b5c59435c usevao bug fix for vivo (#7088) 2020-08-06 16:34:21 +08:00
Leslie Leigh (李的序) 419f8c0286 @cocos/build-engine for 1.2 (#6735)
* Build engine V3.0.0

Ammo.js wasm support; Multi-module engine support; Remove physics macros
Lock

* 3.0.1
2020-08-06 10:26:52 +08:00
pandamicro 724afb7be5 Merge pull request #7079 from cocos-creator/3d
_checkMultipleComp() default return true (#7077)
2020-08-05 23:34:23 +08:00
黄森斌 718ca0608b _checkMultipleComp() default return true (#7077) 2020-08-05 22:57:03 +08:00
troublemaker52025 785ebc4d4a Resolve light batching (#7055)
* add  light batching

* update

* abstract PassInstancedBuffer && LightInstancedBuffer

* Conflict resolution

* merge batched-buffer

* update
2020-08-05 17:24:24 +08:00
troublemaker52025 933465ccca Resolve light instanced (#7039)
* add  light-instanced

* update func name

* update

* update

* update

* update

* abstract PassInstancedBuffer && LightInstancedBuffer

* update

* merge pr to 1.2

* Conflict resolution

* merge instancedBuffer

* update
2020-08-05 17:22:53 +08:00
Knox 968a53e673 sync 2d outline component (#7061) 2020-08-05 15:28:22 +08:00
Knox f5c2041978 sync 2d page-view component (#7064) 2020-08-05 13:44:23 +08:00
Leslie Leigh (李的序) 26df6fb1c0 Optimize editor decorators (#7002) 2020-08-05 10:36:52 +08:00
minggo acaeed4e4e RenderView remove dependence of Root (#7034) 2020-08-05 09:36:18 +08:00
Knox 644632a58d Fix label.string cannot be set to null or undefined. (#7069) 2020-08-04 17:11:33 +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
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
SijieWang 0678150d85 Prevent tampering with clickEvent.componentId data (#7052) 2020-07-31 16:57:33 +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
cary 7a553576ef Fix the particle build error when culling checked. (#7031) 2020-07-27 22:26:20 +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
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