Commit Graph

18404 Commits

Author SHA1 Message Date
徐兵 a2aecfe243 [bug] fix macro of material is invalid and set value of HDR for PipelineSceneData with native engine (#12074) 2022-07-20 10:47:33 +08:00
徐兵 2be3554f9f modify the type of albedoScaled and transparencyFactor multiplied by baseColor.a (#12071) 2022-07-20 10:41:31 +08:00
江战 02655fa8fa use cmath std::fabs instead of cstdlib std::abs (#12075) 2022-07-20 08:59:56 +08:00
minggo 616968d7bd Adjust code struct and remove unneeded variables in Node (#12069) 2022-07-19 23:23:25 +08:00
James Chen 9a7204143f Fix crash of spine test on Android, revert Mat4 and use enoki::load_unaligned in Vec3::transformMat4Neon (#12076) 2022-07-19 19:23:11 +08:00
徐兵 c2b821e105 fix data exception caused by parseInt (#12078) 2022-07-19 18:47:35 +08:00
Cocos Robot eaab33e7d4 [ci skip][AUTO]: Automated code generating update: 0fe6abc85cec4e94d8382ed2f45fe5ba60c8d458 (#12068) (#12077)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-19 17:47:30 +08:00
ChiaNing d9c93a57c7 remove blend state on fillPass function (#12068)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-19 17:18:38 +08:00
ChiaNing 74ebf33dc5 fix mask default material bug (#12070)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-19 17:16:29 +08:00
jk20012001 3d91d97527 [bug] retrieve getShadowPassIndex from submodel (#12057) 2022-07-19 14:49:39 +08:00
Yiwen b741bd3dd5 fix the validation errors about renderpass and swapchain (#11945)
* fix the valication error that framebuffer mismatch renderpass
2022-07-19 14:46:21 +08:00
yangchao fefd8efcda mac server mod (#12054)
* mac server mod

Co-authored-by: bravetwo <bravetwo@163.com>
2022-07-19 13:42:21 +08:00
Zhang mingzhen 12625f09d8 RenderDrawInfo code sorting (#12055)
* remove blendHash and DrawInfoAttrLayout

* remove code in cpp

* remove blend hash in ts

* remove blendhash of middleware in ts

* remove rebundant code

* remove stencilStage in drawinfo

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-19 13:35:54 +08:00
Cocos Robot b6e14e8b35 [ci skip][AUTO]: Automated code generating update: 2c279f69cdc821e2d096b4f5d5d3e3173d4c975d (#12053) (#12064)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-19 11:40:28 +08:00
Santy-Wang ddfa13e4cf optimize a bit jsb call (#12065) 2022-07-19 11:36:25 +08:00
ChiaNing b6e1fe4d6a Slim Render Draw Info (#12053)
* Slim Render Draw Info

* fix CI

* safe delete

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-19 11:13:37 +08:00
zhakesi 51d999e0e6 native batcher2d tiled-map addUserNode complete (#12059) 2022-07-19 10:53:42 +08:00
Yiwen b72ba1db7e fix the calculation of projection of shadow, should consider clipSpaceSignY (#12036) 2022-07-19 08:55:26 +08:00
James Chen ab733d5644 [v3.6.0] Fix some potential memory issues (#12045)
* Fix deleting IntrusivePtr _pipeline object in Rot.cpp.

* Remove unused code.

* Avoid nullptr dereference in SceneCulling.cpp

* Fix memory leaks for some objective-c code.

* [dragonbones] Avoid extra memory allocation and copy in CCFactory.cpp

* [dragonbones] DragonBonesData::binary needed to be 'freed' rather than 'delete'd.

* [dragonbones] Fix using delete to release memory allocated by 'new[]' in SlotColorTimelineState.

* Remove variable srcOffset & dstOffset in Mesh::merge
2022-07-18 16:39:26 +08:00
Zhang mingzhen 1fd70ef5e7 UIOpacity and UIRenderer recursion bug (#12015)
* optimize JSB sync in every frame

* opacity bug, enabled doesn't sync to native

* UIOpacity and UIRenderer recursion

* avoid parameters are undefined

* resolve circular dependency

* exclude UIMeshRenderer in setEntityColorDirtyRecursively

* exclude UIMeshRenderer in UIOpacity setEntityLocalOpacityDirtyRecursively

* blend hash should put into passdirty

Co-authored-by: zhangmingzhen <mingzhen.zhang@cocos.com>
2022-07-18 15:42:02 +08:00
James Chen 3025bcd012 [v3.6.0] Optimize se::Object::getPrivateData, math::IsEqualF, Vec3::transformMat4 (#12039) 2022-07-18 14:10:16 +08:00
Cocos Robot 3030a15efa [ci skip][AUTO]: Automated code generating update: 34cde05fa14ead3af3b26057b90329cd64090929 (#12042) (#12051)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-18 11:53:53 +08:00
Santy-Wang 56c26db7f5 optimize renderEntity and renderDrawInfo padding (#12042)
* adjust padding

* optimize padding

* use default constructor
2022-07-18 11:48:04 +08:00
PP 615e3437bc ban transform es6 to es5 on Bytedance platform (#12035) 2022-07-18 11:44:13 +08:00
jk20012001 f9db1777a2 [optimize] avoid calculate dir lighting and shadows with lightmap (#12027) 2022-07-18 11:40:20 +08:00
江战 ec0a051840 V3.6.0 opt fill vertex buffers (#12046)
* optimize fillVertexBuffers
2022-07-18 11:33:39 +08:00
jk20012001 3da86aed53 [optimize] shadow pass texture sampling without alpha test (#12005) 2022-07-18 11:32:50 +08:00
SijieWang 0822ab1045 [Optimize] export CCClass.isCCClassOrFastDefined (#12043) 2022-07-18 10:34:45 +08:00
zhakesi 096453b2ad native batcher2d for tiled-map (#12044)
Co-authored-by: zhakesi <zhakesi@foxmail.com>
2022-07-18 10:12:26 +08:00
ChiaNing 968c3837fc Fix sprite render bug when Sprite Frame is null (#12041)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 18:09:03 +08:00
yangchao 3973cf0a0c fix : video player state show error (#11992) 2022-07-16 17:50:27 +08:00
ChiaNing 1bf931f29b fix graphics update material crash (#12038)
Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 17:19:00 +08:00
Santy-Wang 996f137724 fix gfx buffer memory usage (#12037) 2022-07-16 17:08:19 +08:00
江战 dbe8fd35b5 Fix PassUtils parsing vec3 with single float (#12028) 2022-07-16 14:36:23 +08:00
James Chen 55fd4b872f Fix se::Object* conversion. (#12034) 2022-07-16 13:36:14 +08:00
ChiaNing 4534698708 mask _updateBuiltinMaterial overload (#12033)
* mask update material overload

* function change

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 13:35:12 +08:00
Cocos Robot 894a5c5fec [ci skip][AUTO]: Automated code generating update: 975e2611f48babc9fff825dd95ebfea1fa88e909 (#12021) (#12031)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-16 09:51:39 +08:00
ChiaNing 6b64c7e8da Remove custom Material flag (#12021)
* Remove custom Material flag

* remove commit model material

Co-authored-by: ChiaNing <sun.clooud.mo@gmail.com>
2022-07-16 09:36:32 +08:00
minggo 0e4eedb78d Adjust model code struct (#12020) 2022-07-15 22:39:07 +08:00
minggo f58b01ea15 use hash combine in Pass.cpp to improve performance (#12024) 2022-07-15 22:35:28 +08:00
Santy-Wang eff9d84bf1 add material-compiling stage (#12022)
* add material-compiling stage

* clear array

* fix ci
2022-07-15 18:37:04 +08:00
Leslie Leigh (李的序) 4d7ca24948 Handle destination start time on empty transitions (#12007) 2022-07-15 17:05:08 +08:00
Cocos Robot 1614c4fe25 [ci skip][AUTO]: Automated code generating update: 727232abba37fb80a91e138386a61623c09fc13b (#12016) (#12019)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-15 16:18:54 +08:00
James Chen 34f4c1c2eb Fix typo of TextureCube::setMipmapAtlas and update property binding in tojs/assets.ini (#12016) 2022-07-15 16:10:33 +08:00
Cocos Robot d44185c7bf [ci skip][AUTO]: Automated code generating update: 83b514d20bce61e75b556e0c5b28531c4978388a (#12011) (#12014)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-07-15 14:23:41 +08:00
zhakesi 775d2b43cc set buffer size for middleware (#12013) 2022-07-15 14:21:55 +08:00
James Chen f644e78e5c [v3.6.0] Refactor native Batcher2d lifecycle (#12011) 2022-07-15 14:17:33 +08:00
江战 2234d57994 ndk (#12009) 2022-07-15 13:53:35 +08:00
江战 ed03d0c8ca [Optimize] reduce size (#12004) 2022-07-15 11:03:38 +08:00
袁炜海 fbd1b4b306 feat: add nvmrc (#11882) 2022-07-15 10:45:39 +08:00