Commit Graph

9755 Commits

Author SHA1 Message Date
Knox ebe243f065 improve canvas fit design resolution code (#7549)
* improve canvas fit design resolution code

* refine code

* refine code

* refine code

* rm code
2020-10-20 18:14:07 +08:00
Yun Hsiao Wu d61330ee03 discrete descriptor set layout bindings (#7536)
* allow discrete descriptor set layout bindings

* specialize local DS layout

* fix binding indices mapping

* fix shadows

* UI: update buffer after device.acquire

* update shadow phase name

* ext blend minmax support

* fix splash screen on native
2020-10-20 15:08:17 +08:00
Knox 17a8f8b54e update default prefab ScollView.prefab (#7562) 2020-10-20 14:40:55 +08:00
PP baf39c51e6 migrate audio bug fix on 2D && support audio clone and AudioManager (#7192)
* try set web audio volume immediately

* fix web audio can't play after unpluging earphones

update

update

* support audio clone

destroy clip on ended when playing one shot

rename var

audio clone

* support audio manager

* update details

* Revert "update details"

This reverts commit 68b1245974d1f904f2698a50c2f33e438e101b23.

* Revert "support audio manager"

This reverts commit b21e3405cefc07729fb7c913ecac50402cf9c857.

* Revert "support audio clone"

This reverts commit 041744c8885a6b3bae6e7ca1fd96a3056360d286.

* rename var

rename

* support multiple playing for Dom Audio

* support multiple backend Audio Manager

* update

* move restart playing logic into player

* update maxAudioChannel

* details
2020-10-19 14:47:30 +08:00
Leslie Leigh (李的序) 114746ec50 Remove es5 cc class (#7504)
* Remove empty comments

* Remove CCClass() style class declaration

* Optimize
2020-10-19 11:51:37 +08:00
minggo 46d6a21a87 invoke native update only it is dirty (#7546) 2020-10-16 17:07:33 +08:00
cary adee4e410b Fix the problem of skybox black in the editor on mac. (#7539) 2020-10-16 13:54:53 +08:00
Jare Guo 2cdc3d1b8b Refine EngineErrorMap and sync 2D changes (#7542)
* refine Color.toCSS/toHex (sync #6216 #6207)

* refine component.resetInEditor (sync #6244)

* Revert "Improve error maps (#5527)"

This reverts commit 224cea23ab.

# Conflicts:
#	EngineErrorMap.md
#	cocos/core/assets/sprite-frame.ts

* Revert "Component rename for new standard and 2d compatibility (#7103)"

This reverts commit 3240dba206.

# Conflicts:
#	EngineErrorMap.md

* Remove some old deprecations (sync #6271)
2020-10-16 10:55:32 +08:00
黄森斌 91dd63d12b component in prefab node add __prefab attr (#7521)
* prefab component add __prefab.fileId

* Editor add CompPrefabInfo to a new component

* do not create legacyCC._CompPrefabInfo
2020-10-15 23:06:27 +08:00
yinkaile 538ef92cb2 refine export pipeline (#7507)
* refine export pipeline

* export memory-pool
2020-10-15 15:54:57 +08:00
coulsonwang af31f258ee fix sphere invalid buffer pool handle (#7529) 2020-10-15 10:29:44 +08:00
coulsonwang 934b18cd10 fix native instanced buffer (#7528) 2020-10-15 10:19:11 +08:00
minggo 17493631e9 initialize again before being reused (#7527) 2020-10-14 15:16:11 +08:00
minggo ed8ba14882 Clip gfx (#7526)
* clip fence.ts

* clip render-pass.ts

* clip queue.ts

* clip descriptor-set.ts, pipeline-layout.ts and descriptor-set-layout.ts

* clip framebuffer.ts

* clip framebuffer.ts

* remove unneeded codes

* remove unneeded codes
2020-10-14 14:33:15 +08:00
minggo 609c49aafe remove unneeded codes 2020-10-14 14:32:23 +08:00
minggo a701b2904b remove unneeded codes 2020-10-14 14:28:59 +08:00
minggo ece2fc3ae7 clip framebuffer.ts 2020-10-14 14:12:21 +08:00
minggo dbf90b0a98 clip framebuffer.ts 2020-10-14 14:05:25 +08:00
minggo 329fefc33c clip descriptor-set.ts, pipeline-layout.ts and descriptor-set-layout.ts 2020-10-14 13:56:54 +08:00
minggo 95a7d90a5c clip queue.ts 2020-10-14 11:18:27 +08:00
minggo 38bffa1fa1 clip render-pass.ts 2020-10-14 11:13:51 +08:00
minggo 8f49b454c0 clip fence.ts 2020-10-14 10:17:06 +08:00
minggo df0efdc74a clip more JS codes on native (#7520) 2020-10-14 09:42:32 +08:00
Knox df196b3ded update _deltaTime calculate for editor (#7503) 2020-10-13 19:09:31 +08:00
JoneLau bc96749ac3 Fix the problem of insufficient memory caused by constant clear (#7486) 2020-10-13 19:08:56 +08:00
Leslie Leigh (李的序) 0bbd77d4fd Move offline-mapping.js into engine repos (#7506) 2020-10-13 17:44:43 +08:00
minggo 8c93b9e890 clip shader.js/input-assembler.js/buffer.js (#7516) 2020-10-13 15:11:57 +08:00
Knox ad75ad86cc improve web view tooltip (#7514) 2020-10-13 10:05:05 +08:00
Leslie Leigh (李的序) 82f66b4e54 Add ccconfig.json for module overrides(alpha) (#7508) 2020-10-13 09:54:28 +08:00
minggo 249d4cd6fb use native Device (#7511) 2020-10-12 18:30:08 +08:00
minggo 27570b6750 fix circle dependence (#7509) 2020-10-12 15:55:17 +08:00
zheng han c8a4884d1a 3d physics 2d gizmo (#7493)
* add mask param to raycast

* refine code

* 1. add some decorator
2. export earcut

* add dashed line

* revert mainLoop modify

Co-authored-by: 2youyou2 <501251991@qq.com>
2020-10-12 15:50:07 +08:00
coulsonwang 35a165e8ca add SphereView to memory pool (#7484) 2020-10-12 15:05:15 +08:00
Yun Hsiao Wu 9bba200429 array pool refactor (#7496)
* refactor array pool

* ModelView.INSTANCED_BUFFER

* MRT feature flag

* minor
2020-10-12 14:25:36 +08:00
yinkaile 96a735b2ff 3d v1.2 physics 2d (#7357)
* Squashed commit of the following:

add physics 2d

* @@ -205,9 +205,6 @@ export class b2PhysicsWorld implements IPhysicsWorld {

revert box2d version

* add mask param to raycast

* refine code
2020-10-12 11:49:49 +08:00
Knox 04cb888694 rename webview to web-view (#7502)
* rename webview to web-view

* refine code
2020-10-12 11:36:14 +08:00
zhefeng.zhang d555cb5f93 sync 2D #6825 to 3d engine (#7467)
* sync #6825 to 3d engine

* correction code
2020-10-11 17:28:48 +08:00
江战 040ebc4f6b sync https://github.com/cocos-creator-packages/jsb-adapter/pull/210 (#7483) 2020-10-11 17:24:27 +08:00
PP 6000791697 Revert "fix sharedCanvas (#7405)" (#7495)
This reverts commit 93d3d8c5de.

# Conflicts:
#	cocos/core/assets/image-asset.ts
2020-10-11 17:20:13 +08:00
黄森斌 8ae5b52379 typescript template add document reference link (#7488) 2020-10-11 17:19:01 +08:00
Knox 1ca96f678b improve web view component (#7414)
* add web view

* add web view gizmo icon
2020-10-11 17:12:11 +08:00
minggo 3539745c14 use native Texture/TextureInfo/TextureViewInfo on native platforms (#7498) 2020-10-10 18:28:16 +08:00
ChiaNing 0382ba40c1 SPF Optimization for build (#7482)
* SPF Optimization for build

* update
2020-10-09 15:22:09 +08:00
PP 73be65cd31 support new SubContextView (#7303)
* support new SubContextView

* update

* add type property when postMessage
2020-10-08 23:57:03 +08:00
pandamicro b579427fd8 Merge pull request #7475 from pandamicro/3d
Merge v1.2 to 3.0
2020-09-30 18:37:11 +08:00
pandamicro 9d9b8d6169 Fix ci 2020-09-30 18:34:30 +08:00
pandamicro 7481303268 Merge branch '3d-v1.2' into 3d
# Conflicts:
#	cocos/core/3d/framework/camera-component.ts
#	cocos/core/assets/mesh.ts
#	cocos/core/components/component-event-handler.ts
#	cocos/core/game.ts
#	cocos/core/gfx/webgl/webgl-commands.ts
#	cocos/core/gfx/webgl2/webgl2-commands.ts
#	cocos/core/pipeline/define.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/instanced-buffer.ts
#	cocos/core/pipeline/render-pipeline.ts
#	cocos/core/pipeline/shadow/shadow-flow.ts
#	cocos/core/renderer/scene/model.ts
#	cocos/core/renderer/scene/shadows.ts
#	cocos/core/renderer/scene/skybox.ts
#	cocos/core/splash-screen.ts
#	cocos/ui/components/button.ts
#	cocos/ui/components/editbox/edit-box-impl.ts
#	editor/assets/primitives.fbx
#	package-lock.json
#	package.json
2020-09-30 18:01:33 +08:00
minggo c9bbcf905f GFXInputState GFXPipelineStateInfo use jsb binded class (#7473) 2020-09-30 17:25:20 +08:00
Knox 1a0ffc6af8 fix calculate delta time bug (#7471)
* fix calculate delta time bug

there is no need to calculate Delta Time under the editor.

* refine code
2020-09-30 16:21:15 +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