Commit Graph

171 Commits

Author SHA1 Message Date
troublemaker52025 d5f77d0af1 [optimization] Split csm ubo v3.6.0 (#12072)
* split csm ubo v3.6.0

* update

* Modify *.meta  file to ignore material upgrade

* update

* update

* update 2

* use better struct padding and save memory

* update mate

* fix ci error

* memory alignment

* update

* update 2

* chenge func name

* update
2022-07-20 22:58:25 +08:00
jk20012001 f9db1777a2 [optimize] avoid calculate dir lighting and shadows with lightmap (#12027) 2022-07-18 11:40:20 +08:00
jk20012001 3da86aed53 [optimize] shadow pass texture sampling without alpha test (#12005) 2022-07-18 11:32:50 +08:00
troublemaker52025 e6b02eecec [bug] shadowMap using linear depth macro with webgl v3.6.0 (#11993) 2022-07-14 18:22:24 +08:00
troublemaker52025 fbf7704865 [update] Fix linear depth function for spot shadow v3.6.0 (#11951) 2022-07-14 15:13:34 +08:00
徐兵 a04e261f32 add support to DCC effect for maximo and blender specularMap (#11953)
* add DCC_APP_BLENDER

* remove function calculateBaseColorAndPBRParams
2022-07-13 16:39:57 +08:00
jk20012001 d2ea1877b0 optimize shader compiling and fix soft5x (#11869)
* optimize shader compiling

* fix compile error

* optimize native 5x
2022-07-12 10:03:50 +08:00
jk20012001 32c99d1ca3 debug view use significant color for invalid data, and gamma correction read (#11917)
* debug view use significant color for invalid data, fix gamma correction read & write

* fix macros

* fix macros
2022-07-11 17:50:45 +08:00
jk20012001 402cf1602a code style: rename spotlightingmap->spotshadowmap (#11800) 2022-07-01 16:17:52 +08:00
徐兵 63cf1f59cc add DCC_APP_GLTF and modify DCC_APP_NAME (#11801)
* add DCC_APP_GLTF

* add surfaces dcc effect
2022-07-01 14:57:42 +08:00
徐兵 ec168ad147 fix SHININESS_MAP_CHANNEL compilation error and CCGetCSMLevel function parameter modify (#11721)
* fix SHININESS_MAP_CHANNEL compilation error and  CCGetCSMLevel function parameter modify

* parameter update
2022-06-28 16:26:05 +08:00
徐兵 fc9161fe9e fix crash on oppo r11 (#11718) 2022-06-27 21:27:33 +08:00
pandamicro 12072ffc62 Merge v3.5.1 zqb branch to v3.6 (#11637)
* support asset property preview (#11017)

(cherry picked from commit 85769cf8f81459b5ad98ccab4138420009572a32)

* show mesh asset thumbnail (#10981)

* V3.5.1 noise particle (#11003)

* add cpu & gpu noise for particle

* add some params & change particle noise shader

* change shader

* add cpu noise particle

* add noise preview

* run generation when preview

* revert shaders

* remove unused statements

* add particle noise module

* change noise preview interface

* add invisible to remap

* remove get deltaTime

* set noiseModule private

* fix eslint

* feat: add noise preview (#11260)

* [Optimize] asset editing undo (#10779)

* edit render-pipeline

* support renderpipeline undo

* optimize material editing undo

* reset last record data

* temporary not support animation-mask undo

* support animation-mask edit undo

* animation mask remove _jointMasks

* Animation clip embedded players (#11320)

* Animation clip subregions

* Log

* Test

* Eval

* Update

* Update

* No longer use animation state to implement clip motion

* Clear subregions

* Fix

* Mark subregion as editor extendable

* Animation clip subregion player path

* fix isnan(0.0) with webgl1.0 (#11262)

* fix isinf(0.0)==true with webgl1.0

* code style

* fix specular params with surface toon (#11265)

* code format and add sliders for parameters (#11266)

* Broadcasting of animation state\'s speed

* Fix

* Rename

* Update

* Fix

* Revert "No longer use animation state to implement clip motion"

This reverts commit 20755f9ec525b27b5b9a515c8dd687349aa4c637.

* Revert some exotic changes

* Update docs

Co-authored-by: jk20012001 <jkregister@163.com>
Co-authored-by: 徐兵 <49358166+xubing0906@users.noreply.github.com>

* fix skinning model split (#11378)

* fix skinning model split

* rename function _resizeMaxJointForDS

Co-authored-by: zhakesi <zhakesi@foxmail.com>

* [ci skip][AUTO]: Automated genbindings update: d823cbba1f7ce8284da28458c26534da2e033961  (#11378) (#11383)

Co-authored-by: cocos-robot <cocos-robot@cocos.com>

* use stop emitting instead (#11381)

* add stop emitting api

* use stop emitting instead

* Update cocos/particle/particle-system.ts

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>

* fix: imageData fault tolerance (#11374)

* fix: imageData fault tolerance

* chore: when data is an empty array,stop the function

* material  undo updating effects list (#11409)

* modify noise module ui (#11433)

* use visible decorator to control the visibility of property (#11438)

* fix joints data with value nan (#11489)

* V3.5.2 CI Android NDK  set version to 21 (#11448) (#11492)

* Minor improvement

* Fix format

* Fix particle culler

* Improve particle culler

* Manually migrate joint data upload with texture in skinning model

* Update shaders for skinning model based on joint texture

* fis native skinning model with realtime-texture mode (#45)

Co-authored-by: zhakesi <zhakesi@foxmail.com>

* fix clangtidy (#46)

* Small tweaks

* modify code struct for skinning model (#47)

* modify code struct for skinning model

* update skinning chunk

Co-authored-by: 黄森斌 <arsen2010@126.com>
Co-authored-by: zxx43 <zxx43@hotmail.com>
Co-authored-by: 袁炜海 <35713518+dogodo-cc@users.noreply.github.com>
Co-authored-by: Leslie Leigh (李的序) <leslieleigh@outlook.com>
Co-authored-by: jk20012001 <jkregister@163.com>
Co-authored-by: 徐兵 <49358166+xubing0906@users.noreply.github.com>
Co-authored-by: zhakesi <liqiao@cocos.com>
Co-authored-by: zhakesi <zhakesi@foxmail.com>
Co-authored-by: Cocos Robot <48829427+cocos-robot@users.noreply.github.com>
Co-authored-by: cocos-robot <cocos-robot@cocos.com>
Co-authored-by: Santy-Wang <wh19930829@qq.com>
Co-authored-by: zhangxin <59186205+chichinohaha@users.noreply.github.com>
Co-authored-by: 江战 <40414978+PatriceJiang@users.noreply.github.com>
2022-06-24 15:10:45 +08:00
徐兵 7d74f56c19 fix crash on mi 6 from issue 10779 (#11641) 2022-06-23 10:50:47 +08:00
jk20012001 037857a1e7 fix surface shader compilation error and composite mode without shadow (#11656) 2022-06-22 18:22:08 +08:00
jk20012001 aaba13ce23 optimize and arrange shader code (#11601)
arrange and optimize shader code
2022-06-18 19:01:10 +08:00
jk20012001 3cf9aaee4e arrange chunks (#11551)
* arrange chunks

* update compiled shaders

* code style
2022-06-16 22:14:09 +08:00
jk20012001 2a122bfc68 builtin\internal-functions rename to builtin\functionalities (#11546) 2022-06-16 15:51:03 +08:00
jk20012001 48bd6fe0ba Fix shader compiling error (#11512)
* add native pcf for shadow-map.chunk

* update compiled shaders
2022-06-15 13:38:15 +08:00
jk20012001 589082e585 Beforemigration (#11497)
* add shadow for surface shader
fix sky effect cc_matworld

* optimize ts code
2022-06-14 20:44:51 +08:00
jk20012001 9965af4abb add debug view mode (#11449)
* add debug view mode

* code style

* fix single mode lighting lack of gamma & tonemapping

* comment style

* move from legacyCC to render-pipeline

* fix gamma & tonemapping not matched in debug view modes

* 原生实现

* move to root

* fix CSMLayers

* pack ubo data

* fix binding

* update binding

* update shaders for debug view

* code style

* fix CI
fix fog in composite mode

* resolve conversation

* resolve conversations

* function order

* resolve conversations
2022-06-14 00:13:27 +08:00
troublemaker52025 308f051faf [v3.6.0] fix direction light shadow bias has not effective (#11458) 2022-06-10 17:00:56 +08:00
troublemaker52025 a9a68e50ae [v3.6.0] CSM panel modification (#11397)
* [v3.6.0] CSM panel modification

* update

* fix ci error

* fix  ci error

* fix ci error

* build effect

* change namespace to '_csmXxxx' && '_xxxCSM'

* modification reply

* update

* update

* update

* fix ci error

* fix ci error

* fix ci error 2

* fix ci error 2

* fix ci error 3

* fix ci error 4

* fix ci error 5
2022-06-10 14:08:10 +08:00
troublemaker52025 e65a3075e4 fix csm flicker for v3.6.0 (#11413)
* fix csm flicker for v3.6.0

* update
2022-06-08 19:10:54 +08:00
troublemaker52025 387b994f91 Add CSM for v3.6.0 (#11120)
* Add CSM for v3.6.0

* fix CI error

* fix Ci error 2

* Limit soft shadow sampling range

* update

* add soft 5x PCF

* add warn ID

* sync CSM to native engine

* fix CI error

* add Performance Mode

* fix ci error

* fix ci error 2

* fix ci error 3

* add precisely tailored

* use CC_SHADOWMAP_FORMAT

* update

* Modify default parameters

* sync to native engine

* revert config file

* fix  ci error

* modify pr problem

* fix CI error

* fix ci error

* sync to js engine

* fix ci error

* fix cc_shadowMap not binding

* fix vulkan shadow effect error

* build effect

* fix ci error

* modify review

* fix ci error

* fix ci error 2

* delete unused interfaces

* fix ci error

* update

* update 2

* fix ci error

* delete csmDebugMode

* build effect

* use csmLeve to shadowCascadeLevel

* update
2022-06-07 14:30:49 +08:00
jk20012001 a83ad12022 fix surface shader runtime macros don't match attribute and uniform define (#11319)
* fix surface shader runtime macro doesn't match
fix surface shader include

* fix compiling error

* fix varying location missing

* fix vk fs shadowbias binding error

* fix vk fs shadowbias binding error

* fix vulkan binding flag not match

* revert binding flags

* fix vulkan error, remove CCLocal from PS
2022-06-06 15:14:32 +08:00
minggo 1788c36852 Merge pull request #11316 from cocos/v3.5.2
V3.5.2
2022-06-01 10:59:10 +08:00
jk20012001 63878dea48 fix isnan(0.0) with webgl1.0 (#11262)
* fix isinf(0.0)==true with webgl1.0

* code style
2022-05-27 21:37:55 +08:00
minggo 77701a2d84 Merge branch 'v3.5.1' into v3.6.0-merge-v3.5.1 2022-05-27 15:23:33 +08:00
minggo 7814949998 Merge branch 'v3.5.1' into v3.6.0_merge_v3.5.1 2022-05-24 11:53:57 +08:00
jk20012001 c4c95e9e59 add sky.effect with surface shader (#11156)
* add sky.effect with surface shader
surface shader code style

* get ready for chunks reorganizing

* Delete default_skybox_diffusion.png.meta

* add depth functions

* add meta
2022-05-23 15:15:17 +08:00
jk20012001 98e00acfa1 fix ndc->world with deferred shading (#11099) 2022-05-15 17:52:30 +08:00
zxx43 630fd4731e V3.6.0 instanced particle shader fix (#11063)
* add particle instance support

* do not change particle-system.ts

* add param type to fix eslint error

* fix memory leak

* fix native destroy error

* fix particle shader bug

* remove #else

* change attribute name

* use vec2 for texcoord

* fix shader

* fix gpu shader bug

* compile native shader
2022-05-14 15:56:37 +08:00
jk20012001 005cdf44d0 optimize anisotropy sample (#11075) 2022-05-14 10:50:10 +08:00
jk20012001 0ecaa8db51 add surface shader (#11048)
* add surface shader

* remove unused item

* arrange main-functions

* arrange main-functions

* fix compatible lighting mode
2022-05-13 21:18:22 +08:00
jk20012001 10e1be3c13 update shader migrated meta (#11038)
update compiled shader
2022-05-12 10:53:47 +08:00
Myway 60e44f7564 terrain and model automatic choose lightmap shader (#11006)
* terrain and model automatic choose lightmap shader

* fix eslint error
2022-05-12 01:43:32 +08:00
zxx43 100e923bee V3.6.0 add instanced particle (#10918)
* add particle instance support

* do not change particle-system.ts

* add param type to fix eslint error

* fix memory leak

* fix native destroy error
2022-05-09 10:43:31 +08:00
minggo 84c27e7f71 Merge branch 'v3.5.0' into v3.6.0_merge_v3.5 2022-04-24 13:41:27 +08:00
jk20012001 c559cab440 Fix instancing performance issue with new chips on metal (#10765)
* Fix instancing performance issue with new chips on metal

* Fix shadow bias with Batching
Update compiled shaders
2022-04-14 17:02:55 +08:00
jk20012001 e78c4c852b Fix #11925 skin instancing vertex attributes binding order for native engine (#10703) 2022-04-09 21:18:24 +08:00
jk20012001 9f83fb1ae9 Add specular intensity for DCC effects (#10613)
* Add specular intensity for DCC effects
effect data migrates for include decode-base and specular intensity

* update compiled shaders
2022-03-31 18:25:03 +08:00
jk20012001 5f75e3a206 add constants for surface shaders (#10590)
* make sure shader include

* add constants
2022-03-30 17:37:13 +08:00
jk20012001 6e93a0e10f Fix #11796 using cc_shadowbias without batching macro (#10587)
* Fix #11796 using cc_shadowbias without batching macro

* code style
2022-03-30 15:01:41 +08:00
minggo a6bf766170 Merge branch 'v3.5.0' into v3.6_merge_v3.5 2022-03-29 18:26:40 +08:00
李吉林 baf95125fc profiler with surface transform (#10515)
* profiler with surface transform

* add namespace closing comment
2022-03-28 10:20:54 +08:00
jk20012001 80ceb1c6eb Fix punctual lights luminance * PI (#10480)
* Fix punctual lights luminance * PI

* code style
2022-03-24 18:13:19 +08:00
jk20012001 d5f172b782 Fix fog accumulated error with multiple local lights (#10445)
* Fix fog accumulated error with multiple local lights

* add standard exposure value for lightmap
2022-03-23 17:43:43 +08:00
Myway 459abdbd72 change lighting map unpack and luminance multiply (#10185) 2022-03-22 12:01:47 +08:00
jk20012001 6e4d4a30ac code style for surface shader (#10326) 2022-03-15 14:31:41 +08:00