Commit Graph

57 Commits

Author SHA1 Message Date
黄森斌 2b390dab29 update internal db prefab meta version (#7556) 2020-10-21 16:21:26 +08:00
Jare Guo a0a992de5d remove asserts from addChild & sync 2D changes (#7479)
* remove asserts from addChild

* expose js._registeredClassIds & js._registeredClassNames (sync #3174)

To unload scripts dynamically.
Also revert part of changes from https://github.com/cocos-creator/engine/pull/3204/files#diff-cabe5229c3c6e31339220008e54fe853L421

* remove unused code (sync #3174)

* minor tweak (sync #3421)

* should not invoke component if destroy() called before node activating (sync #3430)

* node should removed and destroyed with scene (sync #3456 #3483)

* fix WebGL detection on Android browsers (sync #3510)

* remove redundant right shift for bitwise operation (sync #3754)

* fix label blur when using dark font color (sync #3949)

* refine tooltip of Block Input Event (sync #4053)

* fix IE/Edge exception when output log/warn before engine initialization(sync #4447, #4500)

* sync class, attribute (#4689, #4712, #4781, #4712)

* fix loading unknown texture format (sync #4820)

* prefer toLowerCase to toLocaleLowerCase + sync #5114

* optimize bezier calculation (sync #5155)

* fix potential memory leak in scene-editor (sync #5643)

* fix _posDirty error of Mask on native platform (sync #6168)
2020-10-15 17:28:14 +08:00
troublemaker52025 82cc28847b add terrain shadow (#7500)
* add terrain shadow

* update

* update

* update

* delete temp source code

* Optimize the auto shadow

* shadow 和 0 号对齐

* add reciveshadow control

* cancel

* fix shadow effect display error

* update

* use 1.0, doesnt use 1 in glsl

* update effects

* change bbMin  && bbMax use Number.MAX_VALUE && Number.MIN_VALUE

* update

* update
2020-10-15 16:48:44 +08:00
JoneLau b86f3ccec1 adjust the Graphics structure to support continuous data filling (#7523) 2020-10-14 11:54:15 +08:00
Myway 0b1f4d316e 3d v1.2 terrain support dynamic lighting (#7510)
* fix terrain bound error, terrain support dynamic lighting

* fix terrain fog

* standard surface add lighting map info

* Revert pcf filter

Co-authored-by: Myway3D1 <404793124@qq.com>
2020-10-13 18:01:03 +08:00
Myway 7e1916973b fix terrain bound error, terrain support dynamic lighting (#7505)
* fix terrain bound error, terrain support dynamic lighting

* fix terrain fog

Co-authored-by: Myway3D1 <404793124@qq.com>
2020-10-12 15:14:12 +08:00
troublemaker52025 3375a5cf15 Shadow optimization (#7459)
* toon receives shadow

* fix gfx state cache

* 背面消影

* merge cc_ShadowPCF && cc_ShadowMapSize to cc_ShadowInfo;  add bias to shader and editor

* update

* merge pr #7452

https://github.com/cocos-creator/engine/pull/7452

* reomve atten; use NL

Co-authored-by: Yun Hsiao Wu <inheritorofgalaxy@gmail.com>
2020-09-30 15:36:01 +08:00
Leslie Leigh (李的序) 21a6bb135a Optimize morph rendering (#7436) 2020-09-30 15:24:29 +08:00
troublemaker52025 e7ada483a8 Shadow range culling for 3d-v1.2 (#7439)
* shadowMap range culling

* fix the light follows the position of the model

* using light node matrix
2020-09-22 14:26:56 +08:00
troublemaker52025 fa6a45aa1a fix shadow draw model back (#7431)
* fix shadow draw model back

* add effect.ts
2020-09-21 17:59:38 +08:00
troublemaker52025 88455d9f95 shadow effect blur (#7391)
* shadow effect blur

* update

* add effects
2020-09-21 12:03:28 +08:00
pandamicro f85145710a Support lightmap in default primitive models (#7396) 2020-09-16 23:57:23 +08:00
Leslie Leigh (李的序) 3384e300a4 Fix decode32 precision issue (#7371)
* Fix decode32 precision issue

* Typo


Typo


Typo
2020-09-14 17:52:34 +08:00
Yun Hsiao Wu 9dc5a20a9a fix pass handle type check (#7348) 2020-09-09 18:02:02 +08:00
Yun Hsiao Wu 2f951db5e2 skybox aspect ratio should take viewport into account (#7297) 2020-09-03 17:46:11 +08:00
Yun Hsiao Wu 856c436a1f fix shadow caster shader (#7293) 2020-09-03 15:00:00 +08:00
zheng han af0bdd1161 terrain asset visible (#7287) 2020-09-03 12:39:04 +08:00
pandamicro 3240dba206 Component rename for new standard and 2d compatibility (#7103)
* Rename ui related components

* Rename files

* Remove Useless errors

* Fix sealed names

* Fix sealed global variables

* Fix circular reference

* Refactor more component names

* Rename particle and animation related component

* export scene and models sub module in renderer

* Rename ModelComponents to Model

* Refactor LightComponents to Light

* Refactor CameraComponent to Camera

* Refactor ConstraintComponents to Constraint and rename physics comps

* Cleanup and fix issues

* Small fixes

* Refactor Model to MeshRenderer

* Final touch

* Fix data class export

* Better deprecation to cover all old usage

* Simpler and better deprecation with js.setClassAlias

* Fix ci

* Fix editor issue
2020-09-02 15:31:49 +08:00
Leslie Leigh (李的序) 6803722fc8 Fix morph issue on some platforms (#7268)
* Fix morph issue on platforms with shader >= 300 && having not float texture

* Fix

* Update

* Optimize

* Typo
2020-09-02 10:27:33 +08:00
Yun Hsiao Wu 18574abab4 misc fixes (#7245)
* fix IBL mip level

* fix decode include order

* better UBO size calc

* fix PSO manager hashing
2020-08-30 21:51:36 +08:00
troublemaker52025 c99525cb7f Repair shadow matrix for 3d-v1.2 (#7223)
* calculate sphere

* calculate shadowCamera matirx

* update

* add pcf shadow

* update

* Modify shadowUI style

* Solve the error

* use else if

* add pcf sampler to x25 times
2020-08-28 11:14:16 +08:00
Yun Hsiao Wu c451c8a4e8 bindless textures (#7231)
* bindless textures

* unified pass UBOs

* remove gl.getActiveUniform in WebGL2
2020-08-28 10:18:34 +08:00
Yun Hsiao Wu e7ef53bd50 fix decode header (#7225) 2020-08-26 18:29:21 +08:00
zheng han 2185a6fc03 change "cc.PlanarShadowInfo" to "cc.ShadowsInfo" (#7215)
* change  "cc.PlanarShadowInfo"  to  "cc.ShadowsInfo"

* change "planarShadow" to "shadows"
2020-08-25 11:10:23 +08:00
cary 7eacd78c0d Merge planar shadow and shadow map. (#7185)
* Merge planar shadow and shadow map.

* fix comment

* modify shadows name

* fix ci
2020-08-24 20:21:08 +08:00
黄森斌 048bb23145 update one fbx meta file in internal db (#7200)
* update internal db file

* update primitive.fbx.meta
2020-08-24 11:57:21 +08:00
troublemaker52025 b8b1cdec71 repair general-vs.chunk (#7187) 2020-08-20 16:13:39 +08:00
cary aabdd1e323 Fix pipeline save error (#7167)
* Fix pipeline save error

* Fix the problem of shadow map.

* resave pipeline
2020-08-20 15:23:38 +08:00
cary c6da0c9054 Resave particle system prefab. (#7186) 2020-08-20 15:21:31 +08:00
yinkaile a3b3782aaa 3d v1.2 graphics (#7164)
* sync #5447 - fixed graphics square cap

* sync #6474 - support graphics antialiasing

* sync #5168

* revert unused code
2020-08-19 11:09:23 +08:00
cary a6c536ec38 Move global data of scene to pipeline. (#7109)
* Move global data of scene to pipeline.

* fix some code judgments.

* fix pipeline save error

* refine skybox and fog info

* fix planer shadow

* fix fog error

* delete setter of skybox and fog
2020-08-17 23:08:59 +08:00
JoneLau 173b1a52f5 ui vertex pixel alignment processing (#7138) 2020-08-17 23:05:03 +08:00
Myway fd777b6a02 lighting map support instancing (#7149)
Co-authored-by: Myway3D1 <404793124@qq.com>
2020-08-17 16:32:15 +08:00
ChiaNing 1cdc95853e UI sharedMaterial (#7112)
* ui update pass

* change UI default mat

* builtin effect fallback

* MaterialType fallback

* fix blendfunc

* updateBlendFunc for custom material

* fix mask & graphics comp

* useless code remove

* update code

* update stencil

* useless code remove

* useless remove

* graphics useless remove

* rebase

* UI sprite texture becomes local descriptor

* rename & add chunk

* update effect
2020-08-17 16:30:00 +08:00
Knox 1114adb909 update default-assets meta to v1.0.31 (#7148) 2020-08-17 10:23:18 +08:00
Yun Hsiao Wu f45ea7928e fix shadow map generation (#7141) 2020-08-14 23:09:51 +08:00
Yun Hsiao Wu dfc3d141f2 GFX Descriptor Set (#7101)
* gfx: descriptor sets

* gfx: descriptor set, singular

* better structure

* adapt upper layers: first pass

finally all compiler errors cleared.

OKAY IT'S HAPPENING EVERYBODY STAY THE ****ING CALM

* adapt upper layers: second pass

THERE AND BACK AGAIN

* unified light pass & shadow shader

* gfx: descriptor set & pipeline layout

* light pass: better structure

* light pass: dynamic uniform

* even more type checking for memory pools

* Fix particleSystem and lineComponent.

* delete comment

* guard pool init param

* Fix trail module error.

* delete space

* light pass: instancing & batching support

* don't polyfill gfx stuff inside EffectAsset

* better light pass structure

* fix spot light culling

Co-authored-by: caryliu <caryliu1999@gmail.com>
2020-08-13 18:21:15 +08:00
黄森斌 ce45efdae0 update internal assets meta (#7107) 2020-08-13 11:55:13 +08:00
SijieWang efc710f169 merge pipeline (#7096) 2020-08-07 14:57:14 +08:00
SijieWang fbb6c52314 Move internal assets to the engine (#7093) 2020-08-06 22:09:24 +08:00
ChiaNing 780a3fce31 components help docs bug fix (#6848) 2020-06-10 14:21:21 +08:00
ChiaNing 1ff503bbf6 components help doc update (#6690)
* components help doc update

* webview remove
2020-05-17 12:50:52 +08:00
ChiaNing 86cb960edc components help document url update (#6669) 2020-05-11 17:09:14 +08:00
Yun Hsiao Wu 48f9321cf6 better camera doc (#6588) 2020-04-21 16:12:17 +08:00
Yun Hsiao Wu 34686586b1 update skybox effect (#6509) 2020-04-08 16:33:13 +08:00
Yun Hsiao Wu 89a43b50e8 camera FOV axis (#6501)
* fov axis

* deprecation
2020-04-07 17:49:52 +08:00
黄森斌 5aaae03612 components add @help for editor show document url (#6428) 2020-03-26 18:42:08 +08:00
Yun Hsiao Wu edd1189518 flexible skinning model (#6131)
* flexible skinning model

* skinning shader works on non-skinning models

* more opts

* UBO default values

* more opts

* update default joint

* more opts

* more opts

* unified skeletal animation component

* misc opts

* fix batched skinning model

* fix mesh interfaces

* texture buffer pool alignment

* move switch to skeletal animation component

* in-shader joint offset

* minor
2020-02-26 11:32:38 +08:00
Yun Hsiao Wu c1c1a82946 API docs (#6174)
* API docs

* wording & tooltip

* update material
2020-02-21 10:20:29 +08:00
SijieWang 3be40411ca Format localized text (#4598) 2019-06-12 16:57:20 +08:00