Commit Graph

2231 Commits

Author SHA1 Message Date
Yun Hsiao Wu 21e4e2e0c8 update effects (#10145) 2022-02-22 16:19:15 +08:00
jk20012001 2549157630 Rearrange IA input variables and functions for surface shader (#10123)
* Rearrange IA input variables and functions for surface shader
Fix default_skybox.meta missing

* Update compiled shaders

* Fix code style
2022-02-17 17:16:00 +08:00
Yun Hsiao Wu 198034ec2c refactor access type array to access flags (#10103) 2022-02-16 09:56:46 +08:00
Yun Hsiao Wu af0c6c7395 fix binding mappings (#10058) 2022-02-08 10:31:50 +08:00
Yiwen d0719c6727 add a new interface to query format feature info (#9949)
* add format feature information for query

* adapted the higher level code to use the new formatFeature query inferface, and run the test-cases-3d

* remove uncessary public interface

* remove uncessary public interface

* remove unnecessary api

* fixed the name of function support16FTexture.

* clean the code, fix some typos.

* correct format features

* group the judgemnts to fix the logic

* query the support to compressed from a decent method. correct some bit operations.

* add FormatFeatureBit into globaleVariable's database to pass npm test

* Add deprecation information to help developers move to the new
interface. Every time a deprecated property is accessed, an error will
present. So developers must move to the new interface following the
instruction in the error info.

* Move the deprecation information to the right module.
2022-01-25 19:02:25 +08:00
Santy-Wang 98396d1602 adjust api description (#10047) 2022-01-25 15:14:19 +08:00
santy-wang 2377830761 update effect 2022-01-24 16:34:23 +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
zxx43 55cd1f9e61 V3.4.2 2d particle fix (#10038)
* fix 2d particle bug

* modify engine version
2022-01-24 13:22:44 +08:00
pandamicro 46f90c85dc Merge branch 'v3.4.1' into v3.4.2 2022-01-21 15:00:15 +08:00
troublemaker52025 8775b73ff0 shadow info migration for v3.5.0 (#9857)
* shadow info mifration for v3.4.1

* fix ci error

* add deprecated

* fix merge error

* fix merge error 2

* update

* Add comments
2022-01-21 13:14:28 +08:00
xubing e30c4e4cb6 Skybox optimization (#10004)
* Skybox optimization

* update notes

* remove legacy parameters

* update notes

* changing variable names
2022-01-21 11:39:41 +08:00
Yun Hsiao Wu 8f6b6b3f48 binding mappings (#10013) 2022-01-21 10:07:56 +08:00
jk20012001 cb0ac4e916 Fix planar shadow z-fighting (#10026)
* Fix planar shadow z-fighting

* Fix planar shadow z-fighting
2022-01-20 23:22:34 +08:00
ChiaNing 0036ddba81 change sys.__isWebIOS14OrIPadOS14Env for iOS 14 (#10019) 2022-01-19 11:41:54 +08:00
Leslie Leigh (李的序) 19c121dd07 Fix skeletal animation sample() does not work as intended (#10006)
* Fix skeletal animation sample() does not work as intended

* update

* currentClipRef -> currentClip

* Rename

* Optimize

* Internal

* Optimize

* Update
2022-01-18 22:56:10 +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
Santy-Wang e7bc1bf813 adjust PhysX initialization (#9641)
* adjust PhysX initialization

* refine

* refine

* refine comment
2022-01-13 14:07:22 +08:00
troublemaker52025 b3f9f3b6bb fix planar-shadow normal is zero for v3.4.1 (#9975) 2022-01-12 23:26:40 +08:00
troublemaker52025 7ca1e42f5c Fix no planar shadow on mac for v3.4.1 (#9953) 2022-01-11 17:39:08 +08:00
DolaMay c6cda96170 Position Delete & Normal Compress: 3.4.1 (#9939)
* Position Delete & Normal Compress

* delete some debug codes

* code review fix
2022-01-07 22:56:14 +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
jk20012001 48c5301132 Fix planar-shadow plane offset sign (#9946) 2022-01-07 13:17:33 +08:00
PP 509f844b13 fix pointer event sorting after activating node (#9906) 2022-01-06 23:20:00 +08:00
troublemaker52025 39ff7f0798 Change define(CC_DIR_SHADOW) to uniform(cc_lightDir.w) for v3.4.1 (#9921)
* change define(CC_DIR_SHADOW) to cc_lightDir.w uniform for v3.4.1

* update

* update 2

* update effect

* update

* update effect 2
2022-01-06 23:08:39 +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
GengineJS 68d112530f Multiple Cameras support rendering to the same RenderTexture (#9924)
* Multiple Cameras support rendering to the same RenderTexture

* Modify the postprocessstage getRenderPass function call
2022-01-06 19:46:18 +08:00
Leslie Leigh (李的序) f6e6026da8 Animation controller api document (#9866)
* Animation controller document

* Apply suggestions from code review

Co-authored-by: yufang.wu <2435731537@qq.com>

* Apply suggestions from code review

Co-authored-by: yufang.wu <2435731537@qq.com>

* Add AnimationController.prototype.setValue example

Co-authored-by: pandamicro <lphuabin@gmail.com>
Co-authored-by: yufang.wu <2435731537@qq.com>
2022-01-06 17:27:02 +08:00
santy-wang b4b8c9ab3a build effect 2022-01-06 16:18:11 +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
Leslie Leigh (李的序) d97e453b07 Fix decorator order issue in standalone mode (#9911)
* Fix decorator order issue in standalone mode

* Apply

* Update
2022-01-05 23:30:21 +08:00
SijieWang c392e019a2 [Feature] Prefab: Support the persistent (#9884)
Co-authored-by: Sijie <devhacker520@hotmail.com>
2022-01-05 23:28:41 +08:00
troublemaker52025 69cd9f5c23 fallback baidu not support shadow for v3.4.1 (#9897) 2022-01-05 23:27:11 +08:00
troublemaker52025 17e0e7ea7b Combing planar-shadow calculations for v3.4.1 (#9903)
* Combing planar-shadow calculations for v3.4.1

* update

* update
2022-01-05 23:26:23 +08:00
Yiwen 8402289d77 fix the bugs found in PR9854. (#9875)
* Add extra steps to the destroy functions to update the cached resources.
This will make sure that the resources in device.stateCache is valid.

* unbind a resource before destroying it

* remove unnecessary non-null assertion

* update the state after the destruction to make the process robust

* fix the bugs introduced in PR9854.
bug: forgot to update the active texUnit in stateCache.

* reduce the use of dot operator to improve performance.

* fix the bug introduced in the previous commit

* reduce the use of dot operator to improve performance
2022-01-05 23:20:47 +08:00
zheng han 334ee05d77 fix editorExtras of curve keyframe (#9905) 2022-01-05 14:08:27 +08:00
Leslie Leigh (李的序) ac49b8b6a0 Refactor communication between skinned mesh renderer and skeletal animation (#9787)
* Refactor communication between skinned mesh renderer and skeletal animation

* Update
2022-01-05 13:40:54 +08:00
Greg1129 fd5ca96299 fix bug bulitin default texture (#9916) 2022-01-04 17:05:11 +08:00
jk20012001 2f6f50ec7f Fix skybox RGBE macro get invalid in startup and mipmap count is overrided (#9904)
* Fix skybox RGBE macro get invalid in startup
Fix mipmap count is overrided

* fix after apply diffusemap scene will not refresh
2021-12-30 17:53:45 +08:00
zhakesi a2bb27f2e4 fix readpixels (#9900)
* fix function readPixels height setting

* add paramter to receive pixel data for readPixels.

* use errorID

* modify error description

* fix import { errorID }
2021-12-30 14:16:30 +08:00
mu xiandong a8234cfb14 Update Scheduler API (#9815)
* Update Scheduler API

Sync 3.4.0

changeLog:
The delay parameter of schdule is in seconds and needs to be marked
Re https://forum.cocos.org/t/topic/126830

* fix eslint

fix eslint

* Update scheduler.ts

* Update scheduler.ts

* Update scheduler.ts

Co-authored-by: muxiandong <24754593@qq.com>
2021-12-30 10:03:36 +08:00
Greg1129 5d3b5d64c8 modify builtin texture generation + particle unit test (#9841)
* modify builtin texture generation + particle unit test + particle system capacity issue 10417

* change texture format to RGBA8

* modify builtin texture generation

* modify format and remove particle parts out to another pr

* fix array buffer view generation
2021-12-29 10:35:57 +08:00
troublemaker52025 028b274ac0 Optimize fixedArea mode culling process for v3.4.1 (#9878) 2021-12-28 15:35:49 +08:00
alpha f153b5cc1b fix Color.fromHex Bug (#9867) 2021-12-28 11:52:01 +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
Yun Hsiao Wu 437b5c3d81 material.copy accepts overrides (#9881) 2021-12-28 11:12:24 +08:00
minggo 4680589de7 detach from scene before destroying Model/Light (#9869) 2021-12-27 10:42:26 +08:00
ChiaNing 36a078e7cb Revert "Add extra steps to the destroy functions to update the cached resources. (#9854)" (#9873)
This reverts commit acb3fce607.

Co-authored-by: Yiwen <15225434259xue@gmail.com>
2021-12-24 19:26:02 +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