1416 Commits

Author SHA1 Message Date
zxx43 b01aabdf57 add .meta for particle_normal.chunk (#436) 2026-11-19 11:14:12 +08:00
zxx43 7fb5ae075b Particle normal map (#418)
* add particle normal map support

* add meta file

* fix shader error

* add render pass

* remove warn when set particle texture

* fix shader define bug

* revert default material

* revert material

* do not need new material

* do not add new effect

* revert chunk

* rename ApplyParticleNormalLighting function

* fix switch render mode bug
2026-11-18 12:31:21 +08:00
hyde zhou 6ccf1cf9a8 Reapply "Feat/plugin support, allow third_party feat(spine) to create plugin f…" (#403) (#424)
This reverts commit 5bcfb9fa04.
2026-11-16 16:33:05 +08:00
hyde zhou 5bcfb9fa04 Revert "Feat/plugin support, allow third_party feat(spine) to create plugin f…" (#403)
This reverts commit a56706c9ad.
2026-11-10 17:04:32 +08:00
Tianze-Chen a56706c9ad Feat/plugin support, allow third_party feat(spine) to create plugin for creator. (#306)
* Add UIMesh component for custom 2D mesh rendering

- Add UIMesh component consuming pre-baked vertex/index/segment data, enabling custom renderers (e.g. spine plugin) to batch through the 2D batcher.
- Export UIMesh from the 2d components index.
- Validate setMeshData input at the boundary (stride, buffer lengths, index values, segment ranges, accessor caps) via engine-standard errorIDs 9010-9017, documented in EngineErrorMap.md.
- Expose StaticVBAccessor per-chunk caps as maxVertexCount/maxIndexCount getters and clamp the 10% reserve to them, so meshes that fit (e.g. 30000 vertices) allocate instead of silently failing.
- Add tests/ui/ui-mesh.test.ts covering the 32767 cap boundary, setMeshData validation, and accessor lifetime.

Also takes over node transform and cascaded opacity: vertices are now always
node-local — UIMesh applies the node's world matrix (unbatched via the
per-draw GPU transform the 2D batcher already maintains for middleware,
batched by baking into the shared chunk copy so draws still merge) and folds
the cascaded UIOpacity into the copied vertex colors itself. The legacy
switches (USE_LOCAL / useLocalData / RenderEntity.setUseLocal) are all derived
internally; consumers never touch them. A JSB staleness poll re-prepares the
native draw infos in the same frame on transform/opacity changes, and a
premultipliedAlpha format declaration drives the opacity fold and the builtin
material's blend factors.

Follow-ups folded in: the opacity fold reads the light color at byte offset 20
(the pos*3f + uv*2f header is 20 bytes), not 16; and UIMesh notifies data
producers through the new onPremultipliedAlphaChanged() hook so subclasses
(e.g. the spine plugin) forward the declared format to their baker instead of
redeclaring the field.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* Disable built-in spine by default; minor editor/build fixes

- Default the built-in Spine feature (spine-3.8) to off in feature cropping, so it is only included when enabled in the editor.
- Recognize scale as a valid spine atlas page attribute in the texture inspector.
- Skip incomplete platform dirs when bundling runtime adapters.

Co-Authored-By: Claude <noreply@anthropic.com>
(cherry picked from commit 7f7922aaf42ff1857f0a6d38970a75d303032f57)

* Export WebAssembly interface under cc.wasm namespace

- Add exports/webassembly.ts re-exporting pal/wasm (instantiateWasm, fetchBuffer, fetchUrl, ensureWasmModuleReady) as the public cc.wasm namespace, so extensions/game code can load their own .wasm files through the engine's platform-adaptive path.
- Expose it as a croppable feature rather than an unconditional export from exports/base.ts: cc.config.json declares a `webassembly` feature and editor/engine-features/render-config.json adds the panel entry (default on, required), so it appears under Project Settings -> Feature Cropping. The label/description are plain text on purpose — i18n:ENGINE.* keys live in the editor package and a custom engine cannot add them.

(cherry picked from commit 92003ab4a21b6ee753cf3ba2ca0f4767658e9cdc)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* feat(simulator): generic native plugin discovery opt-in

The generic plugin discovery chain (cc_gen_plugin_cmake_hook ->
plugins_parser.js -> Pre-AutoLoadPlulgins.cmake -> find_package ->
plugin_registry) already exists and is what native device builds use; the
simulator never invoked it. Wire it in behind an opt-in cache variable, with
no plugin names or plugin logic in the engine — the plugin set is always just
the scan result:

- templates/cmake/common.cmake: cc_gen_plugin_cmake_hook()'s scan roots
  (CC_PLUGIN_PATH) may now be pre-set by the caller; the native-build
  project-layout defaults are unchanged when nobody pre-defines it
- simulator runtime-src CMakeLists.txt: -DSIMULATOR_PLUGIN_SCAN_DIRS="<dir>
  [;<dir>]" scans those roots for cc_plugin.json through the same chain as
  device builds (CC_PROJECT_DIR points into the build tree so the generated
  hook lands there, satisfying the parser's output-dir invariant); unset
  keeps the stock plugin-less simulator, and a cache variable means plain
  `cmake --build` reuses the configured scan
- simulator Game.cpp: call cc_load_all_plugins() after init, mirroring
  BaseGame::init(), so registered plugins' JSB bindings exist before any
  script runs (no-op when no plugins are linked)
- libsimulator protobuf config.h: skip the <hash_map>/<hash_set> defines on
  MSVC >= 1950 (headers removed); stubs fall back to the std::map emulation
  path

Verified end-to-end: a project extensions/ tree scanned at configure time
produces a simulator exe whose plugins register their JSB bindings at startup
(observed live in the simulator's JS context).

Co-Authored-By: Claude Code <noreply@anthropic.com>

---------

Co-authored-by: Developer <developer@cocos.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Engineer <engineer@cocos.com>
2026-11-04 16:41:54 +08:00
llsansun 2157fd176d Multithreading (#322)
* worker pool

* opt

* backup

* worker and worker backend

* worker fallback

* opt

* opt

* remove meta

* opt

* worker export

* testcase fix

* worker js template

* worker pal

* worker opt

* test

* Replace error messages with error codes

* Package size reduction

* Package size reduction

* revert

* Restore editor asset .meta files to the base branch state

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014HAtWwr4dy5azfpccweh1g

* bugfix

* Split into two features: Worker and Worker Pool

* worker option

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 16:35:14 +08:00
jk20012001 661de759ef fix(shader): HDR output for all floating point render targets (#351) 2026-09-22 11:50:47 +08:00
xubing0906 6b5c8556a2 Fix Builtin reflection probe culling by passing the probe context to … (#186) 2026-08-19 17:25:21 +08:00
徐兵 e317c04512 fix planar reflections for editor camera previews (#236) 2026-08-17 17:25:14 +08:00
troublemaker52025 90e551b4a1 fix(legacy): the incorrect description of light visibility (#251) 2026-08-07 16:24:00 +08:00
徐兵 d5f24e6170 Merge pull request #246 from xubing0906/v4.0.0-skybox
fix(rendering): skip environment specular sampling when IBL is disabled in reflection probe fallback
2026-08-05 16:00:31 +08:00
徐兵 085d05928d fix(shader): fix lighting discontinuity at mirrored UV seams (#209) 2026-07-31 17:19:29 +08:00
徐兵 2d2bbe6731 Use TONE_MAPPING_ACES constant for CC_TONE_MAPPING_TYPE check, skip ACESToneMap in linear mode. (#196) 2026-07-20 14:13:02 +08:00
Knox 9b17fd6165 update primitives.fbx.meta (#166) 2026-06-24 14:30:59 +08:00
昌敦伟 32478c1a9c fix(assets): update default cubemap resources (#152) 2026-06-04 09:56:43 +08:00
orchid-world 5c99570616 feat(2d): support rounded rect mask radius (#140) 2026-06-02 18:26:55 +08:00
tangkai 92124590fe update (#131) 2026-04-29 16:10:42 +08:00
tangkai 822ac6026c update assets.js (#129) 2026-04-29 13:04:48 +08:00
tangkai 04f063eb2b add key value to assets.js (#127) 2026-04-28 23:09:53 +08:00
hyde zhou 0db09bef5c change default scene content 2025-12-29 17:38:35 +08:00
hyde zhou 002ae41087 add 3.8.8 default scene back (#9) 2025-12-29 17:23:40 +08:00
媛媛 971366f49f rename default asset template (#22)
* rename default asset template

* update
2025-10-15 13:07:27 +08:00
hyde zhou 1ba858437f fix spot light angle strength (#18945) 2025-09-01 17:27:17 +08:00
GengineJS ef1fb139fd Fixed the issue that web offscreen MSAA does not take effect when postprocessing is not enabled (#18925) 2025-08-22 15:06:29 +08:00
GengineJS fc4e861a03 New pipeline and webgl2 added off-screen msaa (#18920) 2025-08-20 13:57:03 +08:00
GengineJS d7b680315a Smooth out the differences in 2D coordinate systems within the effect. (#18855) 2025-07-22 15:00:34 +08:00
Knox 8419b4515d Fix missing i18n display for properties (#18850) 2025-07-15 15:44:02 +08:00
袁炜海 925cf640d8 fix: ensure that atlasFileFilter is a valid value (#18836) 2025-07-08 16:41:40 +08:00
hyde zhou 13b8fd4d22 V3.8.7 bloom (#18816) 2025-06-26 18:36:18 +08:00
昌敦伟 bc1217d187 In the Cocos Editor, the variable for "Animation Bake Rate" in FBX has been modified to "Animation Bake Sample Rate". (#18778) 2025-06-13 15:05:22 +08:00
GengineJS da02806cb0 Fixed Gizmo (#18758) 2025-06-03 14:07:42 +08:00
GengineJS a3ac04373f Added the ui pipeline of the web (#18736) 2025-05-29 18:36:28 +08:00
GengineJS 1a784fbd88 Bloom version migration (#18749) 2025-05-29 17:19:03 +08:00
GengineJS 7416a242c4 Optimizing the code of built-in custom pipelines (#18732) 2025-05-23 00:40:18 +08:00
GengineJS b5f1b88b81 Added mipmap bloom algorithm (#18725) 2025-05-22 11:53:19 +08:00
hyde zhou 7f8e050eed builtin pipeline add global uniform (#18694) 2025-05-08 14:38:05 +08:00
袁炜海 57481a8b9d feat: put xr at the end (#18697) 2025-05-08 14:35:02 +08:00
James Chen 5a9225f2ac Revert "Fixed the issue of missing components when selecting multiple nodes (…" (#18669)
This reverts commit c46604ca4e.
2025-04-25 18:41:03 +08:00
Knox c46604ca4e Fixed the issue of missing components when selecting multiple nodes (#18665) 2025-04-25 17:15:44 +08:00
James Chen afef795931 Add Sorting2D support. (#18643) 2025-04-22 14:28:55 +08:00
zhefeng.zhang 56fcaea788 Fixed an error when using compress texture for 3D particle (#18630) 2025-04-18 13:44:24 +08:00
Knox e7d2e7e2f4 Make the preview zoom effect consistent with the scene (#18609) 2025-04-16 11:14:02 +08:00
媛媛 1dbac264c9 add envCondition for xr & vendor-google (#18618) 2025-04-15 18:14:33 +08:00
Knox b10071507b Implement tooltip descriptions for ModelBakeSettings (#18615) 2025-04-15 12:41:10 +08:00
Knox 20714a1c52 Prefab preview supports toggle (#18577) 2025-04-14 09:43:55 +08:00
Knox 02e889a50a remove the code that queries the auto atlas when setting up a SpriteFrame (#18571) 2025-04-11 15:03:38 +08:00
昌敦伟 6f78b3b00f Remove ccon (#18544) 2025-04-10 10:23:41 +08:00
Knox 99fa601ed0 Improve preview inspector (#18576) 2025-04-10 09:50:36 +08:00
媛媛 b0dbb458fa update envcondition for gfx-webgl (#18582) 2025-04-09 14:49:03 +08:00
James Chen 7b70780d9d Update bullet wasm, bind CollisionShape_getLocalBoundingSphere (#18547) 2025-04-07 10:04:05 +08:00