zhakesi
1f4e10a0c8
fix spine/dragonbones opacity update ( #10349 )
...
* fix spine/dragonbones opacity update
* fix use ui-opacity with spine on editor
Co-authored-by: zhakesi <zhakesi@foxmail.com >
2022-03-21 19:51:34 +08:00
ChiaNing
44b78f0a89
fix opacity dirty bug when parent change ( #10416 )
2022-03-21 19:13:51 +08:00
santy-wang
10349e567d
Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5.0
2022-03-08 10:21:39 +08:00
黄森斌
4f05432c23
Displayorder is removed from the edit template and is taken over completely by the decorator ( #10165 )
2022-03-02 21:14:37 +08:00
pandamicro
1446db89e7
Merge branch 'v3.4.2' into v3.5.0
...
# Conflicts:
# cocos/2d/components/sprite.ts
# cocos/2d/framework/ui-transform.ts
# cocos/2d/renderer/render-uniform-buffer.ts
# cocos/core/builtin/effects.ts
# cocos/core/builtin/shader-sources/glsl1.ts
# cocos/core/builtin/shader-sources/glsl3.ts
# cocos/core/builtin/shader-sources/glsl4.ts
# cocos/dragon-bones/ArmatureDisplay.ts
# cocos/spine/skeleton.ts
# editor/assets/chunks/cc-sprite-fs-gpu.chunk
# editor/assets/chunks/cc-sprite-fs-gpu.chunk.meta
# editor/assets/chunks/cc-sprite-vs-gpu.chunk
# editor/assets/chunks/cc-sprite-vs-gpu.chunk.meta
# editor/assets/default_skybox.meta
# editor/assets/effects/builtin-sprite-gpu.effect.meta
2022-02-28 17:24:02 +08:00
pandamicro
2ba83f18a4
Ensure RenderData.clear won't break usability ( #10177 )
...
* Cleanup Renderable2D onDestroy and destroyRenderData
* Ensure RenderData.clear won't break usability
* Remove quad render data
* Fix Skeleton.destroyRenderData
* Small tweak
* Fix ci
* Add protection to buffer accessor size calculation
* Cleanup spine & dragonbones code
* Improve DragonBones draw list management
* Fix currRenderData state issue
2022-02-25 14:56:54 +08:00
pandamicro
50a43e18e4
Shared vb accessor for spine ( #10077 )
...
* Robust updateOpacity in batcher & cleanup code
* Support Batcher2D commitIA
* Support customized buffer size for StaticVBAccessor
* Reorganize RenderData logic and prepare spine refactor
* spine realTimeTraverse using dedicated accessor
* Support spine clipping
* Fix updateOpacity in batcher 2d
* Support Spine cache mode
* Fix ci
* Use different accessor for tint spine
* Update effect
* Fix native spine and dagonbones IA range issue
* Fix spine tint accessor registartion
* Revert darkColor default value
* Fix spine accessor switching issue and render data init issue
* Shared vb accessor for dragonbones (#44 )
* Shared vb accessor for dragonbones
* fix code style
* add explanation why need resize render data in realTimeTraverse
Co-authored-by: zhakesi <liqiao@cocos.com >
2022-02-18 15:24:59 +08:00
ChiaNing
2bae6537f5
fix renderData update bug when renderable2d not render ( #10101 )
2022-02-14 18:41:46 +08:00
ChiaNing
8f87cbd483
useless UI_GPU code delete ( #10048 )
2022-01-25 19:14:41 +08:00
santy-wang
995f5b2d41
Merge branch 'v3.4.2' of https://gitlab.cocos.net/publics/engine into v3.5-merge
2022-01-24 15:56:49 +08:00
pandamicro
bd3c30fd4c
BufferAccessor refactor for Batcher2D ( #9802 )
...
* VB cache add(only simple)
* sliced add
* after rebase
* Extract BufferAccessor from MeshBuffer
* Refactor for linear buffer accessor
* Support simple sprite
* Fix initialization issues
* Fix simple sprite rendering
* Rough adaptation
* tweaks
* Fix LinearBufferAccessor's appendBuffers
* Cleanup mesh buffer codes
* Reorganize ia allocation
* Middleware adaptation & Particle 2d adaptation (#31 )
* Middleware adaptation
* particle-2d adaptation
* Initial implementation of static vb accessor
* Complete static vb accessor
* Improve static vb accessor
* Ensure MeshBuffer.byteOffset
* Fix record batch process in static vb accessor
* Fix vb reset
* simple & simple label add (#32 )
* Meshbuffer static length (#33 )
* set ib only first time
* Meshbuffer static length
* Some name refactor
* remove RenderData.vData
* Improve buffer update logics
* Use appendIndices in fillBuffers
* The quickest version(simple & label can render) (#34 )
* Revert "Use appendIndices in fillBuffers"
This reverts commit 0600e26f7eee277c820c3097b1f48f79fcf60890.
* the quickest version
* pass renderScene
* batch
* change batcher update
Co-authored-by: pandamicro <lphuabin@gmail.com >
* Move ia record logic from accessor to batcher
* Make vertexFormat sourced from render data
* sliced & bar-filled (#35 )
* radial-filled & tiled & label (#36 )
* radial-filled & tiled
* bmfont & char label
* function change
* name change
* Remove uvDirty
fixes
Fix uv update for sprite
* Reduce mesh buffer setDirty
* uv fix
* Format label
* Refactor color and cascade opacity mechanism
* Fix empty render data or chunk absent issue
* fix some uv (#37 )
* Fix non stop allocation issue in static vb accessor
* fix bmfont richText & remove uiComponent (#38 )
* fix bmfont uv
* fix richText & remove ui Component
* Fix mesh render data batching
* Small fix
* Update for spine
* Formatting jsb spine and editor
* middle ware & particle 2d (#39 )
* motion-streak
* dragon Bones add
* tiled map unsafe change
* particle-2d add
* function name change
* some function change (#40 )
* Fix RenderData pool usage
* Fix merge issue
* fix misc bug (#41 )
* Native adaptation for spine and dragonbones with MeshRenderData
* misc fix (#42 )
* Improvements
* Fix ci and improvements
Co-authored-by: ChiaNing <sun.cloud.mo@gmail.com >
2022-01-07 15:43:04 +08:00
PP
fbde8d1e90
use lagacyPublic to marked deprecated public interface ( #9859 )
...
* use lagacy-public
* publish beta6
* remove jsDoc tag from constructor
* use legacyPublic
* publish beta 7
2021-12-28 11:48:10 +08:00
PP
cc01fad918
support internal interface filter ( #9797 )
...
* support interface filter
* publish build-engine@4.2.20-beta.1
* update
* fix other type of statement
* publish @cocos/build-engine 4.2.20
* update lock
* remove `@internal` from constructor documentation
* change to internal_cc tag
* support target tag in interface-filter
* publish 4.2.21-beta.1
* remove `@private_cc` tag
* remove public internal interface
* remove public internal getter setter
* remove public declare internal property
* update
* remove `__editorExtrasTag__`
* remove public internal interface on `js`
* pulish @cocos/build-engine 4.2.21-beta.2
* change tag to `@deprecated_to_user`
* support `@deprecated_to_user`
* publish 4.2.21-beta.3
* finish change request
* change to marked_as_engine_private
* publish 4.2.21-beta.5
2021-12-22 12:55:45 +08:00
santy-wang
d3d84673d3
Merge branch 'v3.4.0' of https://gitlab.cocos.net/publics/engine into v3.5.0
2021-12-10 19:20:01 +08:00
zhakesi
87937148c4
fix init opacity status. ( #9764 )
2021-12-06 19:50:49 +08:00
ChiaNing
99bdb07378
Revert "mesh buffer cache add ( #9728 )"
...
This reverts commit 1c0db6414a .
2021-12-03 19:46:09 +08:00
santy-wang
01ceef90c1
Merge branch 'v3.4.0' of github.com:cocos-creator/engine into v3.5.0
2021-12-03 00:08:06 +08:00
ChiaNing
1c0db6414a
mesh buffer cache add ( #9728 )
...
* UI MeshBuffer Cache add
* support hierarchy changed event
* notify upper
* use Dirty by Hierarchy Changed
* PR fix
* Fix CI
* fix CI
* support hierarchy changed event & function name change
* function name change
* comment add
* type change
Co-authored-by: santy-wang <wh19930829@qq.com >
2021-11-25 21:25:16 +08:00
santy-wang
6cde877e5b
Merge branch 'v3.4.0' of https://gitlab.cocos.net/publics/engine into v3.5.0
2021-11-24 14:23:21 +08:00
ChiaNing
0173699089
Add renderData cache & simplify merge check ( #9651 )
...
* Add renderData cache & simplify merge check
* move function
* remove material id
* change dirty name
* fix CI
2021-11-19 18:21:02 +08:00
zhakesi
fed044e8fb
optimize opacity update ( #9679 )
...
* optimize opacity update
* remove _cacheAlpha
* modify code style
* Update cocos/core/scene-graph/node-ui-properties.ts
* Update cocos/core/scene-graph/node-ui-properties.ts
* 1. supplement unit test case
2. supplement default dirty parameter
(cherry picked from commit 7e62d265ffbc8566e92bfcc10c1f9eb68e081487)
Co-authored-by: Santy-Wang <wh19930829@qq.com >
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-11-19 17:35:19 +08:00
Zhang mingzhen
c0ca3405b5
remove deprecated attributes: srcBlendFactor and dstBlendFactor#6461 ( #9533 )
...
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-10-26 13:49:52 +08:00
Zhang mingzhen
1448c55ab7
update tooltips of "cocos/2d" and "cocos/ui" #9163 ( #9489 )
...
* Update tooltips of sprite-frame and texture(#9163 )
* Supplement some tooltips and annotations of som attributes in folder "cocos/2d/component" and "cocos/ui"
* Optimize some tooltips according to comments of PR
* optimize tooltips according to comment at 2021/10/19
(cherry picked from commit fe3d0a910fe11489521c46656343483a502594c3)
* fix "anisotropy" interpretation.It emphasizes threshold instead of just amount.
(cherry picked from commit d06a8c3d6b2d4205a9a51dc769d32ae1eb707b9a)
* optimize tooltips according to EricCorleone's comment at 2021/10/19
(cherry picked from commit df7044bb73a0e1b1dc1f9e946a45d96bc839b00e)
* optimize tooltips according to Xunyi0's comment at 2021/10/20
(cherry picked from commit 6b42df5c69d12a74adee44bc9add2c27e6064c9f)
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2021-10-25 11:49:58 +08:00
ChiaNing
9e4bafcbdd
fix custom material bug ( #9482 )
...
* fix custom material bug
* change material default value
2021-10-14 10:30:09 +08:00
ChiaNing
a360eec69b
fix canRenderBug when color change ( #9437 )
2021-09-30 18:00:59 +08:00
ChiaNing
24fe3ff784
UI GPU dirven add ( #9378 )
...
* uniform
* uniform buffer add
* add dummy IA
* first working version
* misc & data structure optimize
* fix webGL1 bug
* rebase on 3.3
* add maxQuadPerDrawcall by device
现在每个DC能绘制的数量由设备返回的 uniform 数量上限决定
* add index
* index bug fix
* sliced ia add(Not finish)
* change mat4 to vec4
* change stride num
* new vec4PreUI finish
* misc fix
* size & anchor dirty add
* bug fix
* add UICapacityDirty
(cherry picked from commit 417e10c8d3422363d80828539b110b93ee4d3cb1)
* static buffer cache version
(cherry picked from commit 1ffe7e7943cdf9af085aeda5ca218c3442fa9119)
* static buffer update version
(cherry picked from commit 964d9cb5b3230963b2a535acac99a34cde7eb63c)
* cache localbuffer
(cherry picked from commit 641b956def64023e0d47be66bc0c0a37ef1e9791)
* fix setPosition event & fix DS release
* weak sliced & filp tiled mode add
* fix tiled y
* fix sliced bug
* ugly but work filled type add
* update effect
* filled mode effect
* shader fix
* RenderData dirty for render data update
* revert fillbuffer
* misc fix
* support label bmfont by meshBuffer
* fix sliced bug & commit Model
* fixed some render dirty flag bug
* cut code by macro.UI_GPU_DRIVEN
* cut code by UI_GPU_DRIVEN Macro on build
* cut file by UI_GPU_DRIVEN
* I-batcher interface add
* remove render queue cache
* file name change
* file name change
* after merge
* fix for v3.4
* useless remove
* fix texture rotation
* fix sliced when atlas rotation
* useless code remove
* native bind
* update effect
* fix DynamicOffsets bind bug
* PR review fix
* effect encapsulation
* change chunk
* update effect
* update shader
* remove color in fs
* move code
* fix UBO buffer bug
* fix ubo count to 10
* fix vk bind
2021-09-29 22:32:33 +08:00
ChiaNing
aef1c2038d
fix sprite opacity change bug when start zero ( #9057 )
2021-07-23 18:54:06 +08:00
Santy-Wang
00367f39e1
support auto-finalization in editor ( #9008 )
...
* support auto-finalization in editor
* refine
* refine
* handle global variable
* refine
* fix bug
* refine
* use debug instead
2021-07-23 15:10:40 +08:00
ChiaNing
33725d600f
fix rich Text opacity bug ( #8985 )
...
* fix rich Text opacity bug
* update opacity use currOpacity
2021-07-18 17:34:08 +08:00
minggo
424232493e
Merge pull request #8777 from minggo/merge_v3.1.2
...
Merge v3.1.2
2021-06-09 14:12:21 +08:00
PP
4914116834
optimize SystemEventType and NodeEventType ( #8678 )
...
* remove recomendation for usage of string type of event
* deprecate KEY_DOWN KEY_UP event
* support SystemEventType.KEYBOARD_DOWN && SystemEventType.KEYBOARD_UP
* deprecate some useless properties
* implement keyboard pal
* remove SystemEventType toString()
update
* fix instantiating EventTouch
* optimize deprecated info
* support native keyboard KEYBOARD_DOWN event
* remove usage of event code
* fix deprecating pure value properties
* optimize deprecating Event type
* optimize deprecating getEventCode()
update
* optimize deprecating eventType
* optimize deprecating isPressed
* optimize deprecating keybaord event
* optimize deprecating rawEvent
* Revert "fix deprecating pure value properties"
This reverts commit 60d586532496fa1f422f05c54a922b86d1dc96ee.
* fix deprecate pure value properties
* Revert "fix deprecate pure value properties"
This reverts commit a83f1725fedfbd7af445892912aacab8e8502147.
* fix deprecating pure value property
* update
updaate
* deprecate some EventType enum in SystemEventType and NodeEventType
* optimize
* update
update
* update
* update
* fix CI
* fix CI
* fix Circular dependency
* fix Circular dependency
2021-06-07 19:06:29 +08:00
zxx43
e1f5d7393a
V3.1.2 optimization #7487 ( #8743 )
...
* optimize fillBuffers & updateWorldTransform
* modify _updateWorldAlpha & invalidateChildren
* 3d should consider parent rotation, so use the Vec3.transformMat4 function
* remove if check null
* remove if check
2021-06-02 11:25:40 +08:00
ChiaNing
f1735ee251
fix ui opacity bug on some type ( #8549 )
2021-04-25 20:27:29 +08:00
ChiaNing
217bc4c4e6
fix opacity bug ( #8504 )
2021-04-20 18:01:18 +08:00
ChiaNing
edfaa4ad64
UI opacity Refactoring ( #8384 )
...
* UI opacity Refactoring
* add dirty flag
* fix bmfont
* change for update
2021-04-16 19:03:41 +08:00
zhefeng.zhang
8d4b4590f0
fixed setMaterial incorrect code ( #8415 )
...
* fixed setMaterial incorrect code
* Revert "fixed setMaterial incorrect code"
This reverts commit 6c41e3aed27ad2e5b717c79cdfd7ea0cbcfdfd27.
* correction code
2021-04-16 18:37:32 +08:00
mmyduckx
24359b0b85
fix native spine premultiliedAlpha bug ( #8396 )
...
* fix native spine premultiliedAlpha bug
* ci
2021-03-25 13:42:32 +08:00
pandamicro
5005752386
Merge remote-tracking branch 'origin/develop' into v3.1
...
# Conflicts:
# cocos/core/builtin/effects.ts
# cocos/core/builtin/shader-sources/glsl1.ts
# cocos/core/builtin/shader-sources/glsl3.ts
# cocos/core/builtin/shader-sources/glsl4.ts
# cocos/core/gfx/define-class.ts
# cocos/core/gfx/define.ts
# cocos/core/gfx/webgl/webgl-buffer.ts
# cocos/core/gfx/webgl2/webgl2-buffer.ts
# cocos/core/pipeline/forward/forward-pipeline.ts
# cocos/core/pipeline/planar-shadow-queue.ts
# cocos/core/pipeline/render-additive-light-queue.ts
# cocos/particle/renderer/particle-system-renderer-data.ts
# editor/assets/chunks/cc-shadow-map-fs.chunk
# editor/assets/chunks/shading-standard.chunk
2021-03-18 18:33:35 +08:00
Santy-Wang
d9f7793971
merge v3.0.1
2021-03-18 16:39:41 +08:00
ChiaNing
05134e29bf
BlendState deprecate ( #8361 )
...
* BlendState deprecate
* tips change
2021-03-18 14:30:59 +08:00
Zeqiang Li
0218c98143
Particle system tooltop translation ( #8358 )
...
* half completed translation
* Tooltip translation
* add renderable2D
* comment CPU-supported-only features
2021-03-15 18:49:51 +08:00
mmyduckx
eefc5e8b61
2d module support zh/en UItooltip ( #8332 )
2021-03-07 16:35:20 +08:00
pandamicro
c5d4c5c08e
Merge remote-tracking branch 'origin/v3.0.0' into device-proof
...
# Conflicts:
# cocos/3d/assets/morph-rendering.ts
# cocos/core/builtin/builtin-res-mgr.ts
# cocos/core/builtin/effects.ts
# cocos/core/builtin/shader-sources/glsl1.ts
# cocos/core/builtin/shader-sources/glsl3.ts
# cocos/core/builtin/shader-sources/glsl4.ts
# cocos/core/pipeline/index.jsb.ts
# cocos/core/pipeline/planar-shadow-queue.ts
# cocos/core/pipeline/render-additive-light-queue.ts
# cocos/core/pipeline/shadow/shadow-flow.ts
# cocos/particle/renderer/trail.ts
# cocos/physics/ammo/polyfill-atob.ts
# editor/assets/effects/builtin-spine-two-colored.effect.meta
# jest.config.js
# platforms/native/engine/jsb-pipeline.js
# tests/general/sealed-global-variables.json
2021-02-07 18:33:59 +08:00
Yun Hsiao Wu
5a02d3f1d0
structure
2021-02-03 17:51:22 +08:00
ChiaNing
d3347dde1c
fix ui blendhash default value bug ( #8220 )
2021-01-27 18:32:23 +08:00
ChiaNing
b05dc98cea
Fix ui pass hash calculation method ( #8217 )
...
* fix ui pass hash calculation method
* useless remove
* bug fix
* hash change
* hash change
2021-01-27 18:15:32 +08:00
pandamicro
c6dad8c494
Merge render scene and improve naming for 2d render ( #8142 )
...
* format and tweek
* Refactor renderer: UI to 2D naming
* refactor root.ui to root.batcher2D
* Refactor UIBatchView to BatchView2D
* Fix issues
* Merge UI render scene to main render scene
* Improve camera scene check in forward pipeline
* Fix eslint ci
* skip js files
2021-01-15 11:43:09 +08:00