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
Yun Hsiao Wu
8d6e75c9b7
restore resize invocation ( #9379 )
2021-09-24 11:50:44 +08:00
Yun Hsiao Wu
e2a16f44ad
effect: subpass support ( #9364 )
2021-09-23 17:08:29 +08:00
troublemaker52025
5bc2063ab8
Add automatically calculate the shadow distance v3.4.0 ( #9355 )
...
* Add automatically calculate the shadowDistance for v3.4.0
* update
* Unify color manipulation in ambient
* use protected
* update
* Improve implementation
* Fix ci
* Reorder import
Co-authored-by: pandamicro <lphuabin@gmail.com >
2021-09-22 17:05:28 +08:00
pandamicro
4c17f85ced
Unify color manipulation in ambient ( #9359 )
2021-09-22 15:26:25 +08:00
troublemaker52025
93f5fa9c2e
fix receive shadow for v3.3.2 ( #9347 )
2021-09-18 15:57:23 +08:00
Santy-Wang
b608ff8315
optimize render texture ( #9342 )
...
* optimize render texture
* refine
2021-09-18 12:04:39 +08:00
Yun Hsiao Wu
c4fcb7c547
should update flat buffer when material changes ( #9338 )
2021-09-17 10:07:44 +08:00
Santy-Wang
8b949169ac
adjust buffer memory usage ( #9326 )
...
Co-authored-by: pandamicro <lphuabin@gmail.com >
2021-09-16 16:27:17 +08:00
Santy-Wang
8dfe080d8c
Merge pull request #9308 from holycanvas/v3.4-sync
...
sync v3.3.1
2021-09-10 11:19:06 +08:00
Yun Hsiao Wu
79f6ec1fcf
handle swapchain resize event ( #9305 )
...
* swapchain resize accept surface transform
* rt attachment should support read back
2021-09-09 16:00:02 +08:00
santy-wang
c87577b809
Merge branch 'v3.3.1' of https://gitlab.cocos.net/publics/engine into v3.4
2021-09-09 13:33:35 +08:00
troublemaker52025
8c88f0cfe9
fix pcf type not display for v3.3.1 ( #9300 )
2021-09-08 15:47:12 +08:00
troublemaker52025
40a40a00ef
Remove shadow.autoAdapt property for v3.3.1 ( #9286 )
...
* Remove shadow.autoAdapt property for v3.3.1
* update
2021-09-06 18:48:26 +08:00
troublemaker52025
d90ae9227f
Shadow culling for v3.3.1 ( #9152 )
...
* pre culling
* update culling
* update
* update
* update
* update
* add jsb
* fix ci
* update
* update fov to netave-engine
* update Shadow Projection
* update merge
* update
* fix ci error
* update
* update
* update
* update
* update
* update
* update shadow default value
* update boundingBox Method
* update _shadowpos
* update
* update
* update
* update
* rename range to shadowRange
2021-09-02 19:10:03 +08:00
Zeqiang Li
d861a08b4b
metal extra viewport issue ( #9271 )
2021-09-02 10:49:48 +08:00
Yun Hsiao Wu
4cf1350fe0
gfx: swapchain refactor ( #9030 )
...
* update effect.hideInEditor
* swapchain refactor
* webgl multi draw
* implicit depth/stencil format
* native adapt
* explicit resizable texture
* DrawInfo in InputAssembler
* device cached states
* sync defines
* gfx: empty backend
* update playground
* remove profiler camera
* update effect types
* fix pass.resetUniform
2021-08-31 19:40:50 +08:00
Santy-Wang
93889feac4
Merge pull request #9187 from cocos-creator/v3.3.0
...
sync V3.3.0
2021-08-16 17:19:58 +08:00
jk20012001
a6dfddc780
Fix spotlight shadow formerge ( #9177 )
...
* fix spotlight shadow matrix, lineardepth, selfbias error (#8483 )
* Spotlight shadows: Added depthbias in viewspace units
* Remove now unnecessary UBO constants
* Add support for directional lights
* fix spotlight shadow matrix, lineardepth, selfbias error (#8483 )
* Fix Spotlight light leaking in backface and compiling error
* fix dirlightview matrix error
* more accuracy for spotlight shadow bias
* Fix face normal bias
* Fix DirLight Soft/Soft2X
* improve performance for ShadowUBO divid op
* remove spotshadow linear mode(can't work with new shadow bias), fix spotshadow linear mode
* fix spot shadow linear mode
* directional light packing mode and disable linear mode
* compiled effects
Co-authored-by: Jamie Anthony Morris <Jamie.Morris@cocos.com >
2021-08-16 14:50:41 +08:00
cary
0a1356a816
Compatible with non-ReadOnly parameters. ( #9160 )
2021-08-15 22:01:41 +08:00
troublemaker52025
c0c1c0313f
update light luminance name for v3.3.0 ( #9142 )
...
* update light luminance name for v3.3.0
* update
* add deprecated
* update
* update
* fix ci error
* update
* update
* update
2021-08-06 15:09:25 +08:00
troublemaker52025
977c19dd1e
Fix mat world it nan v3.3.0 ( #9133 )
...
* fix MatWorldIT will be used Nan for v3.3
* update
2021-08-06 13:08:21 +08:00
GengineJS
950518c251
Fix the incorrect ModelBounds of BakedSkinningModel ( #9113 )
2021-08-02 17:06:42 +08:00
GengineJS
da05275968
Fix the problem that mainlight cannot be closed ( #9104 )
2021-08-02 10:32:55 +08:00
cary
b8ec697a23
Change the sync of native pass to message queue. ( #9096 )
2021-07-30 10:15:05 +08:00
GengineJS
3fbe3a1ea8
Treat the scene node as the native root node ( #9072 )
2021-07-29 18:30:42 +08:00
Santy-Wang
ad5887440d
use debug to print information ( #9082 )
...
* use debug to output information
* use info to output some key information
2021-07-28 13:36:13 +08:00