Commit Graph

58 Commits

Author SHA1 Message Date
徐兵 8409d06bca reflection probe support box projection (#14200) 2023-02-14 18:37:57 +08:00
troublemaker52025 03fe6aca9a add dir-light visibility and support baked light (#14087) 2023-02-03 15:46:14 +08:00
徐兵 1d226aea71 add lod culling for reflection probe (#13955) 2022-12-29 16:32:17 +08:00
pandamicro afd22296b4 MIT license update and to new year 2023 (#13927)
* Cpp MIT license update and to date
* TS MIT license update and to date
2022-12-28 11:25:12 +08:00
徐兵 c06d6dc657 fix error caused by create terrain model and not use 3d base modules (#13795) 2022-12-13 18:02:21 +08:00
Myway e30adb09ad Add lightmap shader macos for native model (#13774)
* terrain support stationary light map
fixed terrain light map shader compile error

* fixed brush invalid material cause missing lighting map uniform

* Add lightmap shader macros for model

* fixed compile error

* Add bakedStationaryMainLight jsb property for scene globals
2022-12-09 16:33:01 +08:00
徐兵 0605e99098 reflection probe support instancing for native engine (#13483) 2022-11-23 00:16:05 +08:00
李吉林 184c8a9c91 refactor light probe data (#13484)
* refactor light probe data
2022-11-22 18:22:52 +08:00
troublemaker52025 0a1a200eb9 [Bug] Fix planar shadow with instancing (#13461) 2022-11-22 11:08:15 +08:00
李吉林 7a32e653cb remove component related code from native (#13352)
* remove component related code from native
2022-11-14 11:34:42 +08:00
李吉林 3d7beff293 support instancing for light probe (#13324) 2022-11-10 18:09:42 +08:00
徐兵 92f74f55b2 reflection probe texture binding (#13168) 2022-10-28 19:07:17 +08:00
江战 280fd976bc Add EventTarget & EventBus (#13100) 2022-10-28 15:44:33 +08:00
李吉林 a1a833ceb4 first optimization for light probe (#13157)
* first optimization for light probe
* optionally emit LIGHT_PROBE_CHANGED event
2022-10-27 11:36:08 +08:00
李吉林 a9d4e13f85 Light probe merge (#13093)
* add light probe
2022-10-19 22:34:21 +08:00
Zach Lee d26b12d722 Feat: GFXBuffer supports exposing staging buffer address to reduce me… (#13041) 2022-10-17 11:04:15 +08:00
jk20012001 4ad23f2193 fix submeshes have different instancing options (#12786) 2022-09-23 16:55:04 +08:00
QingliWang 6a8f53b186 Add features for XR developement. (#12413)
* Change Android mainloop, add global config and template projects for XR.

* Change gfx/gles device's process flow for XR, working with other PRs, waiting.

* Change gfx/Vulkan device's process flow for XR, working with other PRs, waiting.

* Change render process for XR.

* Develop XR input and events.

* Develop 3D feature of UI widgets and raycast effect for XR.

Co-authored-by: fqamic <fqamic@vip.qq.com>
2022-08-22 16:34:45 +08:00
minggo d40b8739bc Merge branch 'v3.6.0' into develop_merge_v3.6 2022-07-18 10:38:14 +08:00
李吉林 debd809319 crop occlusion query (#11990)
* crop occlusion query
2022-07-14 19:32:47 +08:00
James Chen fcebfcb1b9 [JSB] Fix some performance issues for 3.6.0 branch (#11523)
* [JSB] Fix wrong path of  pipeline-state.ts in cc.config.json which causes pipeline-state.jsb.ts takes no effect.

* [JSB] Optimize MeshRenderer.setInstancedAttribute for native. Avoid to generate temporary JSB objects.

* [JSB] Optimize se::Object::getArrayLength.

* Reorder typedarray type in Object::getTypedArrayType, check Float32Array first since we use Float32Array and unsigned integer much more frequently.

* More std::vector.reserve in InstancedBuffer.cpp & Model.cpp

* Update stack size to 64 bytes for array in js_Model_setInstancedAttribute
2022-06-16 13:56:38 +08:00
Myway 7e2c407c95 add initLightingmap method in native model (#11490) 2022-06-14 13:34:10 +08:00
James Chen fdc977ee78 [v3.6] Cleanup code, fix typo and add missing property bindings (#11254)
* Fix typo: Fog::setfogRange -> Fog::setFogRange

* Model::getInstancedAttributeBlock should return reference.

* Update scene.ini

* Fix errors in scene.ini.

* Put Node::_children private.

* Update access level, return value, typo.

* revert Ambient.h

* Remove an unused method: RenderScene::removeModel(index_t idx);

* Update scene.ini

* Add missing propery bindings in Shadows & AmbientInfo.

* Remove unused accessor in Ambient.h
2022-05-31 09:57:30 +08:00
James Chen 024737aebc fixed #11195: Rename cc::optional, cc::any, cc::variant to ccstd::optional, ccstd::any, ccstd::variant (#11197)
* Move Any.h/Optional.h/Variant.h to base/std and rename them to lowercase.

* fixed #11195: Rename cc::optional, cc::any, cc::variant to ccstd::optional, ccstd::any, ccstd::variant

* Format code.
2022-05-24 18:47:16 +08:00
李吉林 566cc0e9d8 fix update octree twice (#10945)
* fix update Octree twice

* rename to _worldBoundsDirty
2022-05-06 15:44:31 +08:00
minggo 271cc5cf23 Remove some format rule (#10919)
* remove some rules
* format all codes with new format rule
2022-05-04 13:09:24 +08:00
minggo b3e5efa16d return temp value instead (#10855)
as this function may return a temple object, so return object reference is not suitable
2022-04-25 14:11:53 +08:00
minggo 444bfe31c4 Refactor CC_NEW/CC_DELETE (#10810)
* replace CC_NEW/CC_DELETE with ccnew/delete
2022-04-21 16:39:34 +08:00
Cocos Robot df50878b14 [ci skip][AUTO]: Automated clang-format update: 735860a2aa285979c890bad6356b14afeff13db5 (#10560) (#10570)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-29 16:40:20 +08:00
minggo 1a9d49e4c6 replace std::list/std::array with ccstd::list/ccstd::array (#10560)
* replace std::list/std::array with ccstd::list/ccstd::array
2022-03-29 16:36:53 +08:00
hyde zhou b1e8733742 [v3.6.0 pipeline] uses Root::getPipeline instead of RenderPipeline::getInstance() (#10486)
Co-authored-by: Zeqiang Li <zeqiang-li@outlook.com>
Co-authored-by: GengineJS <476393671@qq.com>
Co-authored-by: zxx43 <zxx43@hotmail.com>
2022-03-25 11:04:50 +08:00
Cocos Robot a2df4e4dbd [ci skip][AUTO]: Automated clang-format update: 771de57fc2c1edbaaf3ae94e77f9801b0379cc6c (#10469) (#10472)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-24 13:50:39 +08:00
minggo 7f4cb9e3b1 Remove string (#10469)
* replace std::string with ccstd::string
2022-03-24 11:53:10 +08:00
Cocos Robot 24d84664f8 [ci skip][AUTO]: Automated clang-format update: 3de15842004cba2142ec0fecd82876d8f6a28236 (#10402) (#10424)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-21 16:04:49 +08:00
minggo 34bf14269c unify stl (#10402)
* add ccstd::vector
* replace cc::vector with ccstd::vector 
* replace std::vector with ccstd::vector
* do not include <vector>
2022-03-21 15:55:02 +08:00
李吉林 8b611affa2 V3.6.0 font debug profiler (#10387)
* add Font&DebugRender&Profiler

* add profiler for metal

* fix profiler review problem
2022-03-21 11:41:54 +08:00
李吉林 d793157a71 add dynamic mesh (#10291)
* add dynamic mesh

* Mesh init refactor

* fix geometry renderer bug

* dynamic mesh review update

* MeshUtils refactor

* do not export createDynamicMesh
2022-03-16 16:55:49 +08:00
Cocos Robot c3f2f4a1cb [ci skip][AUTO]: Automated clang-format update: 3b49861e5f (#10261) (#10267)
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
2022-03-09 13:38:22 +08:00
minggo 73c303f556 Merge branch 'v3.5.0' into merge_v3.5.0 2022-03-08 14:53:00 +08:00
troublemaker52025 e723e5aa3a Add renderMesh bias for v3.5.0 (#10102)
* Add renderMesh bias for v3.5.0

* fix ci error

* change function name

* fix merge error

* update

* update 2

* update

* update

* update 2
2022-02-24 23:27:09 +08:00
bofeng-song 7e2fce85f9 sychronize engine to native (#10099)
* sychronize engine to native according to  https://github.com/cocos-creator/engine/pull/10041
2022-02-15 10:09:53 +08:00
mmyduckx e52bb2bf06 add forward declaration for pipeline (#10082) 2022-02-14 09:31:00 +08:00
Yun Hsiao Wu 14a17c9d22 license upgrade (#4210) 2022-01-24 17:18:47 +08:00
minggo 5410a48a58 Implement more logic in native (#4131)
Co-authored-by: bofeng.song <bofeng.song@chukong-inc.com>
Co-authored-by: dumganhar <dumganhar@gmail.com>
Co-authored-by: mmyduckx <308303735@qq.com>
Co-authored-by: Patrice Jiang <397136899@qq.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-01-07 18:39:40 +08:00
troublemaker52025 4e231f4232 updateLightingmap sync to native-engine for v3.4.1 (#4109)
* updateLightingmap sync to native-engine for v3.4.1
2021-12-20 10:34:23 +08:00
李吉林 67b7de1948 updateWorldBoundUBOs only necessary (#4099)
* updateWorldBoundUBOs only necessary
2021-12-10 14:59:00 +08:00
李吉林 bed27fcccf V3.4.0 occlusion query2 (#3975)
* occlusion query
Co-authored-by: lijilin <jilin.li@cocos.com>
2021-10-13 18:21:03 +08:00
李吉林 fa210fa955 add octree scene manager (#3891)
* add octree scene manager
Co-authored-by: lijilin <jilin.li@cocos.com>
2021-09-17 11:20:05 +08:00
GengineJS d4a7f06068 Fix the incorrect ModelBounds of BakedSkinningModel (#3791) 2021-08-02 17:06:35 +08:00
GengineJS 838721ef30 [Fix] native instance bakeanim not working (#3714) 2021-07-16 09:53:54 +08:00