Commit Graph

161 Commits

Author SHA1 Message Date
Yun Hsiao Wu f70f2dd6e3 move window out from GFX (#6844)
* window info accepts render pass

* move window out from GFX

* update effects

* fix formating

* match shader location to IA attributes
2020-06-12 10:56:47 +08:00
Leslie Leigh (李的序) adfdb67bb8 Eliminate cc.* log functions invocation (#6845) 2020-06-10 14:19:11 +08:00
minggo 10377de263 Remove texture view (#6830)
* fix conflict

* support creating texture view

* remove GFXTextureViewType

* set texture type to cube

* set status

* fix comment

* IGFXFramebufferInfo add mipmap level element

* set mipmap levels for all attachments

* make mipmap level optional

* fix comments
2020-06-09 11:23:34 +08:00
pandamicro 395265fc15 Merge pull request #6738 from YunHsiao/3d
merge 3d-gfx into 3d
2020-06-04 13:38:13 +08:00
ChiaNing 4775c33658 fix editbox input emoji fragment bug (#6810)
* fix editbox input emoji fragment bug

* update
2020-06-04 10:54:26 +08:00
Yun Hsiao Wu 69db70a910 Merge remote-tracking branch 'origin/3d' into 3d 2020-06-03 16:22:00 +08:00
SijieWang a9f3969245 Merge remote-tracking branch 'cocos-for-editor/3d-v1.1.1' into 3d
# Conflicts:
#	cocos/audio/assets/clip.ts
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/3d/framework/batched-skinning-model-component.ts
#	cocos/core/3d/framework/editor-camera-component.ts
#	cocos/core/3d/framework/index.ts
#	cocos/core/3d/framework/model-component.ts
#	cocos/core/animation/animation-clip.ts
#	cocos/core/animation/animation-manager.ts
#	cocos/core/animation/animation-state.ts
#	cocos/core/animation/skeletal-animation-component.ts
#	cocos/core/animation/skeletal-animation-state.ts
#	cocos/core/assets/mesh.ts
#	cocos/core/assets/simple-texture.ts
#	cocos/core/assets/sprite-frame.ts
#	cocos/core/assets/texture-base.ts
#	cocos/core/data/class-decorator.ts
#	cocos/core/data/instantiate.ts
#	cocos/core/event/event-target.ts
#	cocos/core/game.ts
#	cocos/core/load-pipeline/CCLoader.ts
#	cocos/core/load-pipeline/plist-parser.ts
#	cocos/core/load-pipeline/unpackers.ts
#	cocos/core/load-pipeline/url.ts
#	cocos/core/math/deprecated.ts
#	cocos/core/renderer/scene/model.ts
#	cocos/core/scene-graph/base-node.ts
#	cocos/core/scene-graph/scene-globals.ts
#	cocos/terrain/terrain.ts
#	predefine.ts
2020-06-03 13:25:42 +08:00
Yun Hsiao Wu 69c88434a4 Merge branch '3d-gfx' into 3d 2020-06-02 17:59:07 +08:00
pandamicro 91a41a2c61 Safe emit game events to avoid editor startup failure (#6779)
* Safe emit game events so that it won't break editor startup

* Correct API

* remove useless indexof
2020-05-29 14:26:50 +08:00
pandamicro a5c238dabb API translations in core (#6726)
* Add API translation for load pipeline

* Add API translation for core/data

* Fix decorator declarations

* API translation for scene graph

* Fix ci

* Fix ci

* Improve Eventify for event emit performance

* Fix ci

* improve format
2020-05-25 15:26:02 +08:00
Yun Hsiao Wu 8c1ee06416 profiler & splash screen works on Vulkan (#6731)
* gfx buffer init size shouldn't be 0

* fix splash screen

* fix profiler

* explicit attribute locations
2020-05-22 18:14:16 +08:00
Leslie Leigh (李的序) 5e2adea787 Rename internal usages of global variable 'cc' into 'legacyGlobalExpo… (#6680)
* Rename internal usages of global variable 'cc' into 'legacyGlobalExports'

* Fix CI

* Rename 'legacyGlobalExports' -> 'legacyCC'
2020-05-14 15:46:45 +08:00
pandamicro e849b7f3c6 Merge remote-tracking branch 'origin/3d-v1.1' into 3d-gfx
# Conflicts:
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/game.ts
#	cocos/core/gfx/webgl/webgl-commands.ts
#	cocos/core/gfx/webgl2/webgl2-commands.ts
#	cocos/core/math/mat4.ts
#	cocos/core/renderer/scene/camera.ts
#	cocos/core/splash-screen-webgl.ts
#	cocos/core/splash-screen.ts
2020-04-28 17:06:07 +08:00
jiaxin.lai 86fd5b59d6 fix replace property (#6566) 2020-04-16 16:39:54 +08:00
ChiaNing 8c41b79aec label baseline add (#6526)
* label baseline add

* baseline change in runtime
2020-04-15 17:55:11 +08:00
Yun Hsiao Wu 3bedccdeaa fix skinning model type when not enabled immediately (#6542)
* fix skinning model type update

* unbatch util

* camera property display order

* fix model type order
2020-04-14 12:47:58 +08:00
Yun Hsiao Wu 89a43b50e8 camera FOV axis (#6501)
* fov axis

* deprecation
2020-04-07 17:49:52 +08:00
Yun Hsiao Wu 69559edb79 misc skinning model fixes (#6497)
* disable the source node after static batching

* disable the components instead

* fix joint texture release
2020-04-07 16:51:04 +08:00
Yun Hsiao Wu 9925844829 better docs (#6496) 2020-04-07 11:36:12 +08:00
pandamicro 85e1fc4b37 Improve component scheduler performance (merge from 2.x) (#6481)
* Improve component scheduler performance (merge from 2.x)

* Fix ci

* Improve component scheduler logic
2020-04-05 14:19:13 +08:00
pandamicro c47e1a1d1b Merge branch '3d' into 3d-gfx
# Conflicts:
#	cocos/core/game.ts
#	cocos/core/pipeline/batched-buffer.ts
#	cocos/core/platform/view.ts
#	gulpfile.js
2020-03-26 11:06:40 +08:00
jiaxin.lai d6d2910b91 deprecated optimize (#6339)
* add costom suggest to deprecated

* tweaks

* format
2020-03-17 16:46:51 +08:00
Yun Hsiao Wu a2379c8ce5 fix profiler region (#6350) 2020-03-17 16:43:48 +08:00
Yun Hsiao Wu 45d182308b GPU instancing support (#6300)
* instancing works

* misc opts

* material.setproperty typing

* baked skinning model instancing works

* fix isNormalized

* custom chunk rules injection framework

* profiler instance count

* seperate custom joint textures

* fix joint mapped buffers

* WebGL 1 doesn't allow int attributes

* should rebuild instances after pso change

* set instance attribute

* constants naming
2020-03-12 10:21:19 +08:00
Leslie Leigh (李的序) 284aa38d25 Build time constants (#6256)
* consts

* Bump @cocos/build-engine version

* Fix

* Upload @cocos/build-engine

* Rm scripts/build-engine/.gitignore
2020-03-11 14:05:22 +08:00
Yun Hsiao Wu 9dd3764265 fix animation clip hash (#6229) 2020-02-26 14:37:51 +08:00
pandamicro b44dcc1115 Merge pull request #6220 from cocos-creator/3d-v1.0.4
Merge 3d v1.0.4
2020-02-25 10:12:28 +08:00
SijieWang dff521ab43 Replace Editor variable (#6189)
* Replace Editor variable

* Fixed several definition errors
2020-02-19 15:09:53 +08:00
jiaxin.lai 50a641548d enable deprecated system in alipay platform (#6151) 2020-02-12 17:56:56 +08:00
JoneLau a7a8cdbd05 [BUG] support api that have not yet been removed (#6097) 2020-01-14 15:53:52 +08:00
Yun Hsiao Wu f380dcd9d4 fix engine init event (#6094)
* fix engine init event

* draw more frames after pause
2020-01-13 19:25:29 +08:00
JoneLau ea700afb50 fix coordinate replace function (#6025)
save
2020-01-04 11:22:14 +08:00
Yun Hsiao Wu 6f37ef31a9 fix profiler init proc (#6009) 2019-12-31 09:59:00 +08:00
Yun Hsiao Wu 997bb7edd3 better profiler size calculation (#5998)
* better profiler size

* restore batching status when destroying model
2019-12-30 16:06:05 +08:00
zxg0622 cd777802f8 add static batch (#5976) 2019-12-27 18:10:09 +08:00
zxg0622 39a7fbdd89 refactor material instance (#5910)
* refactor material instance

* revert setMaterial signature

* fix some defects

* material instance using inheritance (#5)

* material instance using inheritance

* renderable component

* more fixes (#6)

* more fixes

* minor

* fix some defects

* fix batching (#7)

* better format (#8)

* fix

* fix batching & skybox (#9)

* fix skinning (#10)

* change sharedMaterial decorator

* add modelcomponent property deprecated

Co-authored-by: Yun Hsiao Wu <inheritorofgalaxy@gmail.com>
2019-12-25 17:41:04 +08:00
JoneLau 12aca7d4a4 convert coordinate from 3d camera to ui (#5896) 2019-12-19 15:05:37 +08:00
Leslie Leigh (李的序) 86636442cf Kill INode & IBaseNode (#5893)
* Remove INode, IBaseNode

* Fix

* Fix types error

* Update
2019-12-19 14:17:14 +08:00
JoneLau a7115f18d3 fix spelling mistakes and wrong format (#5888) 2019-12-12 18:39:54 +08:00
pandamicro 3bffb3f48a Merge remote-tracking branch 'origin/3d' into 3d-v1.0.2
# Conflicts:
#	cocos/core/pipeline/render-view.ts
2019-12-12 16:59:17 +08:00
jiaxin.lai b55ac9713b remove some unneeded code (#5878) 2019-12-10 19:05:09 +08:00
zxg0622 1c7c5f4d75 fix renderpipeline bug & some defects (#5843) 2019-12-05 15:22:52 +08:00
pandamicro 802d7a9b49 Merge branch '3d-v1.0.2' into 3d
# Conflicts:
#	cocos/core/components/ui-base/canvas-component.ts
#	cocos/core/components/ui-base/ui-render-component.ts
#	cocos/core/game.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/render-flow.ts
#	cocos/core/pipeline/render-pipeline.ts
#	cocos/core/root.ts
#	cocos/core/scene-graph/base-node.ts
2019-12-03 19:23:26 +08:00
ChiaNing f3c198171e alipay adapter update (#5824)
* alipay adapter update

* platform change

* update

* useless remove
2019-12-03 15:47:23 +08:00
ChiaNing fce470c9c9 alipay adapter & oppo adapter (#5813)
* adapter

* adapters useless remove

* bug fix

* clip getplayer

* alipay adapter update

* redefin remove

* log remove

* deprecated redefine fix

* predefine update

* AliPay console adapter

* prefab update
2019-12-02 15:34:39 +08:00
ChiaNing b7606ef2fc node event TRS remove (#5750)
* node event TRS remove

* transformBit  rename & deprecated

* notice update
2019-11-20 16:07:50 +08:00
pandamicro f85b7bf7e5 Merge branch '3d-v1.0.2' into 3d
# Conflicts:
#	cocos/core/components/ui-base/ui-render-component.ts
#	cocos/core/components/ui-base/ui-transform-component.ts
#	cocos/core/scene-graph/base-node.ts
#	cocos/terrain/terrain.ts
2019-11-19 18:28:54 +08:00
Yun Hsiao Wu f7f6193f26 skinning model bounds (#5743)
* first try: skeleton bounds with scaling

* second try: bone space per joint bounds

* rendering data pool manager

* shadow culling

* better identity joint texture handle allocation

* fix batched skinning model material lost

after quitting animation editor

* unify local ubo binding
2019-11-19 18:13:49 +08:00
JoneLau 4638caecb0 fix name err (#5726) 2019-11-13 15:50:44 +08:00
Yun Hsiao Wu 1146b322a3 update effects (#5722)
* update effects

* fix profiler aspect
2019-11-13 15:45:19 +08:00