minggo
a6bf766170
Merge branch 'v3.5.0' into v3.6_merge_v3.5
2022-03-29 18:26:40 +08:00
Santy-Wang
ab82e1b42d
remove hidden ( #10414 )
...
* remove hidden
* fix typo
* fix unit-test
* turn on auto fix
2022-03-22 15:11:16 +08:00
hyde zhou
7e68488a76
shadingScale moved from PipelineSceneData to Pipeline ( #10292 )
2022-03-10 09:57:59 +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
Zhang mingzhen
abeab77c3c
wechat minigame optimization #11328 ( #10159 )
...
Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com >
2022-02-28 14:56:07 +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
ChiaNing
0036ddba81
change sys.__isWebIOS14OrIPadOS14Env for iOS 14 ( #10019 )
2022-01-19 11:41:54 +08:00
ChiaNing
466a2dc97d
change macro for meshBuffer ( #10001 )
...
* change macro for meshBuffer
* name change
* test used name change
2022-01-17 16:09: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
bc0f912279
fix keyboard event listening on mobile ( #9935 )
...
* fix keyboard event listening on mobile
* update deprecation info
2022-01-06 23:05:56 +08:00
PP
b6d54e3ad7
support screen.devicePixelRatio ( #9926 )
2022-01-06 15:35:53 +08:00
santy-wang
7ffe1bc031
Merge branch 'v3.4.1' of https://gitlab.cocos.net/publics/engine into v3.5.0
2022-01-06 14:41:28 +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
jk20012001
eb883997a1
Fix #10538 : Android+WebGL PS struct variables has mediump precision ( #9863 )
...
* Fix #10538 : Android+WebGL PS struct variables has mediump precision
* update compiled shaders
* review modification
* update compiled shaders
2021-12-24 11:01:54 +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
Leslie Leigh (李的序)
d5154269e2
Fix log() takes not effect if debug mode <= verbose ( #9681 )
2021-11-18 12:00:24 +08:00
PP
1abbc90c23
compability for PROPORTIONAL_TO_FRAME container strategy ( #9642 )
...
* support isProportionalToFrame field on screen-adapter
update
stash
* rename _setupContainer to _setupCanvas
* optimize view.setResolutionPolicy()
* remove TIME_OUT to handle resize event
* compability for PROPORTIONAL_TO_FRAME container strategy
comp
update
* add NOTE
* optimize 'window-resize'
resize
* deprecate game.frame && game.container
deprecate
game
* close screen.resolutionScale interface
close
* fix npm test
* fix view unit test
* space
2021-11-11 19:24:39 +08:00
PP
ab69d20027
Revert "deprecate ENABLE_WEBGL_ANTIALIAS ( #9626 )" ( #9645 )
...
This reverts commit 5ffc4482cd .
2021-11-10 11:27:51 +08:00
PP
5ffc4482cd
deprecate ENABLE_WEBGL_ANTIALIAS ( #9626 )
...
* deprecate ENABLE_WEBGL_ANTIALIAS
update
* remove deprecation usage
2021-11-05 10:40:51 +08:00
PP
51989a1b76
get exactFitScreen option from game initialization ( #9594 )
...
* get exactFitScreen option from game initialization
* set HTML5 as true by default
* optimize editor scene resize
2021-11-02 10:25:49 +08:00
PP
1ed2a9833e
optimize screen adaption on Web platform ( #9580 )
...
* optimize screen._init
* support WindowType on Web platform
* optimize fullscreen adaption
* optimize frame resize
update
* set timeout to handle screen event
* fix esLint
* fix esLint
* fix spelling
* fix number type
* EVENT_TIMEOUT
* fix esLint
* revert naming 'OrientationMap'
2021-11-01 00:01:49 +08:00
Jare Guo
00cf281cf0
switch error url to develop branch ( #9582 )
2021-10-30 22:16:01 +08:00
PP
f5511f4c87
Revert "Revert "optimize interface in screen module ( #9176 )"" ( #9490 )
...
This reverts commit b88d4845cc .
2021-10-15 10:21:04 +08:00
pandamicro
b88d4845cc
Revert "optimize interface in screen module ( #9176 )"
...
This reverts commit 4735476945 .
2021-10-14 23:07:23 +08:00
PP
4735476945
optimize interface in screen module ( #9176 )
...
* optimize interface in screen module
* remove DPR calculating
* update screen-adapter init
* set screen.resolutionScale as 1 by default
* remove pixelRatio getter in system-info
* remove sys.windowPixelRatio access
* optimize screen.windowSize
update
* convertToCocosScreenSpace
* change resolution-change to window-resize
* fix native UI
update
update UI
update UI
* optimize screen init
* fix subContextView
* fix root resize
* fix precision issue on Metal render end
* sys.windowPixelRatio
* use warnID
* remove screen.convertToCocosScreenSpace
* put private property and method together after public ones
* warnID
* fix landScape on CocosPlay
* fix DPR on vivo platform
* fix CI
2021-10-14 22:16:34 +08:00
PP
f433551d1d
support system feature query ( #9428 )
...
* support feature query in pal/system-info
* support sys.hasFeature and deprecate sys.capabilities
* remove deprecated usage
* support input feature query
update
* IMAGE_BITMAP
* INPUT_TOUCH
* WEBGL
* support WEB_VIEW, VIDEO_PLAYER, SAFE_AREA query
* rename INPUT_XXX to EVENT_XXX
* support device-manager
update
update
update
* add NOTE
* export deviceManager from gfx
* fix circular dependency
* fix wechat devtools
update
* Revert "fix circular dependency"
This reverts commit ba8a6c0e2e4fa6b2015ae438a4c9a5da94b9bf46.
* Revert "export deviceManager from gfx"
This reverts commit 14b26ca0e3f6e0dce32c37bd668c65193dbd366f.
* Revert "support device-manager"
This reverts commit 010a910e56e1ee2fe9726629fca163fc24ed5b37.
# Conflicts:
# pal/system-info/enum-type/feature.ts
* update
update
* use INPUT_TOUCH for sys.capabilities
* update
2021-10-14 10:29:36 +08:00
PP
9b7cbc8298
optimize DPR change event listener ( #9421 )
...
* optimize DPR change event listener
* cache previous DPR when resize callback
update
* support all web platform
2021-09-30 10:23:45 +08:00
Kun Lin
9b6bb5151e
Bloom ( #9413 )
...
* Bloom
* Fix for code review
2021-09-29 11:44:25 +08:00
GengineJS
b12a7ed18d
forwardpipeline supports fxaa ( #9387 )
...
* forwardpipeline initially supports fxaa
* fxaa completes the adaptation
* update effect
* update postprocess stage
* add comment
* update
* Pipelines run the Postprocess stage
* effect added anti-aliasing judgment
* modify fxaa effect
* update comment
* update native
2021-09-28 11:17:02 +08:00
santy-wang
6391b5705a
Merge branch 'v3.3.2' of github.com:cocos-creator/engine into v3.4.0-physx
2021-09-24 12:11:48 +08:00
pandamicro
99e5085532
Revert GLES_ANTIALIAS ( #9313 )
2021-09-10 11:10:33 +08:00
santy-wang
c87577b809
Merge branch 'v3.3.1' of https://gitlab.cocos.net/publics/engine into v3.4
2021-09-09 13:33:35 +08:00
PP
97b3657549
migrate input module out of platform ( #9296 )
...
* migrate input module out of platform
* revert EventKeyboard.isPressed deprecation
* fix CI
2021-09-07 15:24:43 +08:00
PP
c412d3a815
support touch manager on PAL ( #9281 )
...
* support touch manager
* update inputmanager
* update event manager
* optimize code
2021-09-07 14:10:04 +08:00
PP
2435520c88
revert deprecate EventKeyboard.isPressed ( #9268 )
2021-09-01 13:35:54 +08:00
pandamicro
d059d03461
Add macro.ENABLE_GLES_ANTIALIAS ( #9243 )
...
* Rename macro.ENABLE_WEBGL_ANTIALIAS to macro.ENABLE_ANTIALIAS
* Upgrade game
* Rename to ENABLE_GL_ANTIALIAS
* Improve api doc
* Revert scheduler
* Add ENABLE_GLES_ANTIALIAS
* Set default gles antialias to false
2021-08-31 13:51:55 +08:00
PP
6bf458920c
add enableAutoFullScreen deprecate info ( #9251 )
2021-08-30 10:25:10 +08:00
Santy-Wang
c80722cd8f
Revert "Match Creator's universal module resolution algorithm ( #9174 )"
...
This reverts commit ebf2754bc3 .
2021-08-19 14:08:52 +08:00
Leslie Leigh (李的序)
ebf2754bc3
Match Creator's universal module resolution algorithm ( #9174 )
2021-08-18 10:08:46 +08:00
PP
b2bed360ca
optimize system event type ( #9130 )
...
* support event callback type
update
* optimize eventKeyboard.keyCode type
* update
* update
2021-08-05 10:48:50 +08:00
Leslie Leigh (李的序)
dbcc52cf1e
Fix cc.debug ( #9081 )
2021-07-27 17:51:38 +08:00
PP
2ec06d5524
close screen.windowSize interface ( #9047 )
2021-07-23 14:40:44 +08:00
PP
c8c74c351b
[CHERRY-PICK] fix touch event not working after touch end on an inactive node ( #8997 )
2021-07-18 17:25:46 +08:00
PP
5b230d70c5
fix sys coding auto completion ( #8995 )
...
* fix sys coding auto completion
* fix ci
2021-07-16 19:05:33 +08:00
PP
5a4bed2379
support inputManager.frameDispatchEvents() in main loop ( #8954 )
...
* support pollEvent() API on pal/input
update
update pal
* support inputManager.frameDispatchEvents() in main loop
* remove event-manager module
* fix CI
* fix _glView
* fix CI
* fix director pause
* update for
2021-07-16 13:45:01 +08:00
PP
d7067c29c8
deprecate interface in View module && support pal/screenManager ( #8836 )
...
* remove BrowserGetter
* deprecated view.adjustViewportMeta
* deprecate view.enableAutoFullScreen and view.isAutoFullScreenEnabled
* remove view._adjustSizeKeepCanvasSize
* remove view._convertMouseToLocation, view._convertTouchWidthScale and view._convertTouchesWithScale
* remove view._originalDesignResolutionSize
* deprecate cc.winSize and cc.visibleRect
update
* access local winSize
* access local visibleRect
* deprecate view.getVisibleOrigin view.getVisibleOriginInPixel
* Revert "deprecate view.getVisibleOrigin view.getVisibleOriginInPixel"
This reverts commit 1ae9e1d5c51d8c701eaa2e4a65cd4c17e5f6d971.
* Revert "deprecate cc.visibleRect"
* optimize screen module
update
* update
update
* optimize deprecation info
* rename pal/system to pal/systemInfo
* update pal/systemInfo access in engine layer
* support pal/screenManager
* update pal/screenManager access in engine layer
* fix bug
* optimize deprecation info
* fix auto fullscreen
* fix ci
* fix ci
* update change request
update
update
* fix CI
2021-07-09 18:57:03 +08:00
pandamicro
09a2eb2d2e
Move director delta time to game and remove deprecated APIs ( #8913 )
...
* Move director delta time to game and remove deprecated APIs
* Small ts fixes
* Fix ci
* Fix module import
* Adaptation
* Improve usage
* Improve deprecation
* Fixes and improve setFrameRate logic
* Move game's time control functions to timer class
* Fix frame time counter
* Tweaks
* Tweaks
* Revert timer
2021-07-09 17:27:52 +08:00
PP
6487e67b36
optimize enum type in SystemEvent module ( #8912 )
...
* export KeyCode
* rename to SystemEvent.EventType
remove legacy import
update pal
* systemEventType =value type, SystemEvent.EventType =enum type
* support KEY_PRESS KEY_RELEASE, deprecate KEY_UP event
* add back Event.NO_TYPE
* update pal/input interface
* fix ci
* Revert "support KEY_PRESS KEY_RELEASE, deprecate KEY_UP event"
This reverts commit 623385e5f8e6c133f287753654b21a5bb7adafee.
# Conflicts:
# pal/input/minigame/keyboard.ts
* remove KEY_PRESS event
* remove legacy usage of macro.KEY
* fix KeyCode spell
2021-07-08 16:39:03 +08:00
PP
fc1700e9ad
optimize system event interface ( #8883 )
2021-06-25 11:32:50 +08:00
PP
d85cee16df
remove legacy adapter in Wechat PC game ( #8626 )
...
* support keyboardEvent on wx pc game
update
update
# Conflicts:
# pal/input/minigame/keyboard.ts
* support mouse event
* move in gl.useProgram adapting
* remove legacy adapter
update
* update
update
update
update
* rename interface
* bind method
2021-06-24 11:37:16 +08:00