Commit Graph

535 Commits

Author SHA1 Message Date
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
jk20012001 766b7efb2a Fix: #11580 create new light source intensity display type unknown (#10324) 2022-03-15 14:32:14 +08:00
troublemaker52025 273fa0162e Change planar shadow func name v3.5.0 (#10174)
* change planarShadow func name for v3.5.0

* update

* Modify semantics

* delete @range slide
2022-03-03 17:53:00 +08:00
timlyeee 65fcf6c0b4 Return aabb objects back to pool (#10230) 2022-03-03 09:45:42 +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
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
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
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
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
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
santy-wang 5899123ce0 Merge branch 'v3.4.1' of https://gitlab.cocos.net/publics/engine into v3.5.0 2021-12-22 10:31:17 +08:00
xubing 2ef43a2bb2 repair UseHDR button& Skybox HDR status (#9843)
Co-authored-by: xubingbing <bingbing.xu@cocos.com>
2021-12-20 16:34:37 +08:00
troublemaker52025 773bf57c61 updateLightingmap sync to native-engine for v3.4.1 (#9828)
* updateLightingmap sync to native-engine for v3.4.1

* update

* merge JSB binding
2021-12-20 10:32:57 +08:00
santy-wang 2355247db0 Merge branch 'v3.4.1' of github.com:cocos-creator/engine into v3.5.0 2021-12-17 11:06:22 +08:00
ChiaNing 5a02e89225 remove DrawCall in DrawBatch (#9824) 2021-12-16 13:10:26 +08:00
santy-wang d3d84673d3 Merge branch 'v3.4.0' of https://gitlab.cocos.net/publics/engine into v3.5.0 2021-12-10 19:20:01 +08:00
Yun Hsiao Wu 810dbc7e29 fix int block init (#9781) 2021-12-08 12:50:44 +08:00
李吉林 f68fa14be3 add geometry renderer (#9776) 2021-12-07 18:13:30 +08:00
Yun Hsiao Wu a4cfc6bde6 fix int uniform (#9738) 2021-11-30 22:50:17 +08:00
troublemaker52025 f0504e98f6 Sync baked properties to v3.4.0 native (#9722) 2021-11-25 15:41:27 +08:00
GengineJS 0bb4aa6716 Native render scene add uniqueness judgment (#9704)
* Native render scene add uniqueness judgment

* JointMedium adds nativeObj judgment
2021-11-24 15:46:41 +08:00
李吉林 abfd2bf5ee update world bound optimization (#9713) 2021-11-23 17:12:55 +08:00
李吉林 8b8d9270c9 add octree setting (#9706)
* add octree setting

* remove lagecy assignment
2021-11-23 13:34:04 +08:00
Yun Hsiao Wu d0748cf024 should sync to native after gen flat buffer (#9688) 2021-11-19 18:51:05 +08:00
Yun Hsiao Wu 1763f2556e fix default property missing when property index is set (#9683) 2021-11-18 16:35:29 +08:00
Yun Hsiao Wu 2ff4e8a8cf set model dirty when attaching to scene (#9674) 2021-11-17 18:54:09 +08:00
Yun Hsiao Wu a3bc15d83d misc fixes (#9631)
* prefer D24S8 first

* webgl creates only one context

* restore render area semantic

* fix inefficient usages in pipeline

* fix raycast pre-rotation adaptation

* draw profiler only once
2021-11-11 17:21:09 +08:00
jk20012001 4f3d85ab78 Fix fog macro->function arguments type error (#9637)
* Fix fog macro->function arguments type error
Fix fog color linear conversion

* Fix eslint warning
2021-11-10 14:31:09 +08:00
jk20012001 f488ea0bb1 Fix initialize function override mip levels(groundalbedo.w) (#9633)
* Fix initialize function override mip levels(groundalbedo.w)

* Code style
2021-11-05 17:51:00 +08:00
Yun Hsiao Wu fa1ad1eee6 pass owns instanced/batched buffer (#9605)
* pass owns instanced/batched buffer

* no zero-sized buffer

* fix effect default content
2021-11-04 12:08:07 +08:00
jk20012001 05bfe29cc2 Fog on big plane #7907 (#9561)
* Add accurate fog (pixel fog), add fog start support to exp fog

* Update compiled shaders

* effects support accurate fog
2021-10-29 10:22:46 +08:00
Yun Hsiao Wu 3493f0c02f fix camera pre-rotation adaptation (#9534)
* fix camera pre-rotation adaptation

* more consistent wrap modes
2021-10-26 15:29:12 +08:00
jk20012001 39fdb46fcf Fix skybox texture display missing assets error (#9479)
Co-authored-by: pandamicro <lphuabin@gmail.com>
2021-10-14 10:30:08 +08:00
李吉林 5dbb1812f2 V3.4.0 occlusion query2 (#9475)
* occlusion query

* add supportQuery

* fix name for occlusion query

* remove redundant function

Co-authored-by: lijilin <jilin.li@cocos.com>
2021-10-14 10:30:08 +08:00
Kun Lin 8127b6da9d Update bloom (#9465)
* Update bloom

* Remove bloom pass for UI camera
2021-10-14 10:29:37 +08:00
jk20012001 e489c1c49e Revert clear color linear convert (#9477)
Fix create new scene display error
Fix RGBE macro not match with useIBL disabled
2021-10-14 10:29:37 +08:00
jk20012001 71892d4c22 Fix ambient data initialization error (#9464) 2021-10-14 10:29:36 +08:00
pandamicro 8e3eb9db05 Support HDR/LDR Light Sources (#9439)
* Added base rendering logic

* Hide using decorators Diffuse reflection map control and ApplyDiffuseMap whenever IBL is disabled

* Added HDR toggle to scene globals

* Fix bug when ApplyDiffuseMap is left checked when envmap is deleted & disable IBL when envmap is deleted

* Add changes to allow rendering the diffuse convolution map

* Added functions to permit setting sky and ground color (hemispheric lighting) from irradiance calculated from a set envmap. That is, when a diffuse reflection irradiance convolution is not used. Also code to discern LDR from HDR

* Various mods

* Permit independent Hemispheric Lighting parameters to be serialized for LDR/HDR

* Add HDR normalization

* Set HDR shader macro

* Modify Illiminance based on global LDR/HDR setting

* Add LDR/HDR versions for luminous flux

* Add distinct LDR/HDR for SpotLight/SphereLight luminous flux

* Adding LDR as the new serialized value, as HDR is assumed by default in previous versions

* Modified hemisphericc ambient light to assume HDR as default removing the necesesity for migration code

* HDR is on by default

* Fix directional light constructor removal

* HDR/LDR fixes for sphere, spot, and directional lights

* Fix the HDR/LDR mode switching on UseHDR toggle

* Switch UI to and from LDR/HDR envmap depending on HDR toggle state

* Make LDR envmap and diffusemap's serializable

* Partial Float32Array->Vec4 conversion

* Fixed passed Vec4() into UBO for skycolor and groundalbedo

* Fixed copy/paste error

* Fix ambient illumination passing into global UBO

* Modify UBOs to call correct luminance functions

* Modification to punctual lights

* Add missing dependency

* Fix HDR/LDR envmap/diffuse map initialization bug

* Add support for native engine

* update_hdr_skybox (#9230)

* update material preview when custom panel change (#9340)

* update material preview when custom panel change

fixed https://github.com/cocos-creator/3d-tasks/issues/8663

* update material preview when custom panel change

fixed https://github.com/cocos-creator/3d-tasks/issues/8663

* Update material.js

* Fix native light function invoke error

* Unify API naming in light

* Improve scene-globals code organization

* Update jsb apis

* Reverse getter setter for spotLight luminance

* Fix unexpectable result of toggle HDR and ApplyDiffuseMap options

* Remove fpScale, make deferred and forward uniform

* Fix skybox macro recompiling error

* Fix shader compiling errors
Fix unlit shader in HDR/LDR output

Co-authored-by: Jamie Anthony Morris <Jamie.Morris@cocos.com>
Co-authored-by: Jamie Anthony Morris <47879963+Jacksparrow2525@users.noreply.github.com>
Co-authored-by: jk20012001 <jkregister@163.com>
Co-authored-by: linshunjun <49218738+linshunjun@users.noreply.github.com>
Co-authored-by: zhangxin <59186205+chichinohaha@users.noreply.github.com>
2021-10-14 10:29:36 +08:00
pandamicro 934a7cabc3 Support editor gizmo camera sync (#9442) 2021-10-08 08:35:58 +08:00
minggo c0b4eb5ab1 calculate inverse matrix when setting matrix (#9256)
* calculate inverse matrix when setting matrix

* remove functions to set matrix

* add deprecated function

* remove getMatViewInv
2021-10-04 16:28:15 +08:00
Myway 6d0622245b rename _transformUpdated to _localDataUpdated, class Model and SkinningModel (#9432) 2021-09-30 16:54:01 +08:00
DolaMay a785144943 cluster ts engine v340 code (#9405)
* cluster ts engine v340 code

* add macro to enable/disable cluster feature

* fix cluster switch bug
2021-09-30 10:16:53 +08:00
ChiaNing 24fe3ff784 UI GPU dirven add (#9378)
* uniform

* uniform buffer add

* add dummy IA

* first working version

* misc & data structure optimize

* fix webGL1 bug

* rebase on 3.3

* add maxQuadPerDrawcall by device
现在每个DC能绘制的数量由设备返回的 uniform 数量上限决定

* add index

* index bug fix

* sliced ia add(Not finish)

* change mat4 to vec4

* change stride num

* new vec4PreUI finish

* misc fix

* size & anchor dirty add

* bug fix

* add UICapacityDirty

(cherry picked from commit 417e10c8d3422363d80828539b110b93ee4d3cb1)

* static buffer cache version

(cherry picked from commit 1ffe7e7943cdf9af085aeda5ca218c3442fa9119)

* static buffer update version

(cherry picked from commit 964d9cb5b3230963b2a535acac99a34cde7eb63c)

* cache localbuffer

(cherry picked from commit 641b956def64023e0d47be66bc0c0a37ef1e9791)

* fix setPosition event & fix DS release

* weak sliced & filp tiled mode add

* fix tiled y

* fix sliced bug

* ugly but work filled type add

* update effect

* filled mode effect

* shader fix

* RenderData dirty for render data update

* revert fillbuffer

* misc fix

* support label bmfont by meshBuffer

* fix sliced bug & commit Model

* fixed some render dirty flag bug

* cut code by macro.UI_GPU_DRIVEN

* cut code by UI_GPU_DRIVEN Macro on build

* cut file by UI_GPU_DRIVEN

* I-batcher interface add

* remove render queue cache

* file name change

* file name change

* after merge

* fix for v3.4

* useless remove

* fix texture rotation

* fix sliced when atlas rotation

* useless code remove

* native bind

* update effect

* fix DynamicOffsets bind bug

* PR review fix

* effect encapsulation

* change chunk

* update effect

* update shader

* remove color in fs

* move code

* fix UBO buffer bug

* fix ubo count to 10

* fix vk bind
2021-09-29 22:32:33 +08:00
Yun Hsiao Wu 47dc632b4d window size should follow swapchain (#9416) 2021-09-29 12:23:56 +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
Yun Hsiao Wu fb3cd12061 remove block/buffer.count (#9406) 2021-09-27 16:25:45 +08:00
pandamicro 78905bae3e Merge pull request #9381 from holycanvas/v3.4-sync
sync v3.3.2
2021-09-24 12:21:55 +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