Commit Graph

347 Commits

Author SHA1 Message Date
troublemaker52025 acbefafe6a add planar shadow for C++ (#7801) 2020-11-17 16:29:41 +08:00
cary cec8460cae Fix the frame rate problem of TestList on native. (#7786) 2020-11-13 16:58:40 +08:00
cary 607ca8a2b4 Add USE_LOCAL processing in ui component batch. (#7777)
* Add USE_LOCAL processing in ui component batch.

* fix ci
2020-11-12 17:40:18 +08:00
Yun Hsiao Wu 53112da281 fix skinning model world bound update (#7775) 2020-11-12 15:03:53 +08:00
江战 63bf61315e [3.0] Spine support (#7765)
* add spine support

* recompile effects

* fix init

* save

* log error

* recompile effects
2020-11-12 15:01:33 +08:00
ChiaNing f3d62ce258 mask invert bug fix & uiComp check (#7758)
* mask invert bug fix

* uiComp check
2020-11-11 19:13:37 +08:00
troublemaker52025 3c669c4d9f Add spot light shadow for 3D (#7643) 2020-11-11 10:15:42 +08:00
pandamicro b162e21a93 Update license and API language declaration (#7750)
* Update licenses

* Update license for audio

* Update license for core/3d

* Update license for animation, assets, asset-manager, components, data

* update license for event, geometry, gfx

* update license for core modules

math, memop, pipeline, platform, primitive, renderer, scene-graph, utils, value-types

* Update license for core

* Update license for particle and particle-2d

* Update license for particle part2

* Update license for physics and physics-2d

* Update license for all modules in cocos

* Update license for exports

* Fix API doc language declaration
2020-11-10 17:36:31 +08:00
Yun Hsiao Wu 91ba93c7f1 update internal effect names (#7744) 2020-11-10 11:36:25 +08:00
zheng han b5770d3f69 fix pass error (#7735) 2020-11-09 19:54:35 +08:00
troublemaker52025 a91c502082 fix merge lost for 3.0 (#7742) 2020-11-09 19:50:34 +08:00
Yun Hsiao Wu 8d2ef1fe51 fix skybox effect (#7740)
* fix skybox

* fix subMesh.iaInfo
2020-11-09 17:55:55 +08:00
Yun Hsiao Wu 32598c25cb switch to eslint (#7727)
* switch to eslint

* eslint: extends airbnb
2020-11-09 10:19:12 +08:00
cary 449e250d7f Fix invalid buffer pool handle error. (#7718) 2020-11-07 11:36:41 +08:00
minggo 956a5b2cc7 Reduce jsb (#7723)
* use JS BufferInfo

* use JS TextureViewInfo

* use JS TextureInfo

* cache some data to reduce JSB invoking

* cached buffer usage

* add RasterizerState.depthBiasEnabled

* use JS DescriptorSetInfo

* add RasterizerState.depthBiasEnabled
2020-11-06 17:33:02 +08:00
minggo 69f6f2bf1a use buffer pool instead (#7714) 2020-11-06 13:38:11 +08:00
minggo 588025afe3 Reduce jsb (#7700)
* use JS version of GFXRect/GFXViewport/GFXColor/GFXOffset/GFXExtent/GFXTextureSubres/GFXTextureCopy/GFXBufferTexrureCopy
* use BufferPool for BlendState/BlendTarget/DepthStencilState/ResterizerState
2020-11-05 18:17:18 +08:00
Yun Hsiao Wu 3e8b6ec771 raw object pool (#7683)
* raw object pool

* fix worldToScreen

* fix mesh.merge on native

* inline some adaptation computations

* enable scissor tests by default
2020-11-05 10:56:59 +08:00
coulsonwang 0030867f63 fix native batched buffer (#7682) 2020-11-04 16:17:27 +08:00
pandamicro 3068956648 Refactor gfx module naming convention (#7663)
* Remove GFX prefix in gfx module

* Full deprecation for old GFX APIs

* export gfx module

* Fix issues and make deprecated exports backward compatible

* Adaptation in engine modules for gfx

* Fix ci

* fix ci
2020-11-02 09:49:50 +08:00
JoneLau 000dd93438 remove errors caused by useless code (#7654) 2020-10-31 19:52:44 +08:00
ChiaNing 6ed0e81cca new UI custom material & use hash check merge (#7649)
* new UI custom material & use hash check merge

* update

* update

* apidoc
2020-10-31 13:34:15 +08:00
cary 5243653fa7 Fix pipeline error in editor. (#7636)
* Fix pipeline error in editor.

* delete destroy in ui model
2020-10-31 12:52:17 +08:00
pandamicro b925dc7f62 Dynamic initialize shaders (#7647)
Co-authored-by: SB <leslieleigh@outlook.com>
2020-10-31 11:45:42 +08:00
coulsonwang 66b8c25574 fix lighting for native (#7637) 2020-10-31 09:49:00 +08:00
Yun Hsiao Wu 7591bbbb20 misc bug fixes (#7644) 2020-10-30 20:33:04 +08:00
pandamicro b67090be4f Revert "Dynamic initialize shaders (#7642)" (#7646)
This reverts commit e3577cf510.
2020-10-30 20:02:16 +08:00
Leslie Leigh (李的序) e3577cf510 Dynamic initialize shaders (#7642) 2020-10-30 19:24:33 +08:00
troublemaker52025 1020378d71 update memory pool for shadow (#7606) 2020-10-30 16:19:21 +08:00
江战 a933edb94f Merge TiledMap from 2.x (#7610)
* Save all

* fix uv

* fix object groups

* fix tintcolor

* add method modifier

* tslint

* replace ccCOlor

* add import warning

* rename

* add comments

* add comments

* update zlib

* Save

* pixel offset

* update tests/general/sealed-global-variables.json

* exclude from cc

* remove _walkGen

* update setScale & setRotationFromEuler
2020-10-30 10:35:52 +08:00
Yun Hsiao Wu c60a6ed251 pre-rotation adaptation: dynamics (#7625)
handle runtime orientation chanegs too
2020-10-29 13:45:16 +08:00
ChiaNing 9caad4d37a pass overridePipelineStates change (#7617) 2020-10-29 13:40:11 +08:00
coulsonwang 663aa1bf52 fix native memory pool (#7615) 2020-10-28 18:24:23 +08:00
Knox 37fec6341f sync 2d (Update the url links) (#7613) 2020-10-28 17:06:27 +08:00
JoneLau 351b6480e4 add image stencil in mask (#7598)
* add image stencil in mask

* update
2020-10-28 12:13:53 +08:00
Yun Hsiao Wu a318283a41 fix pre-rotation adaptation (#7607) 2020-10-28 10:28:21 +08:00
Leslie Leigh (李的序) f99240f664 @cocos/build-engine: add option to remove deprecated features (#7603) 2020-10-27 18:28:58 +08:00
cary 6bcc7933a9 Add motion streak and particle 2d. (#7588)
* Add motion streak and particle 2d.

* fix buffer error

* modify comment error

* fix ci

* fix comment

* modify some comment
2020-10-27 11:48:17 +08:00
ChiaNing ca87207d7f UI stencil cache add (#7595)
* stencil cache add

* function format change

* format change
2020-10-26 19:04:23 +08:00
ChiaNing b10e8c5bcd DescriptorSet Cache add (#7591)
* DescriptorSet Cache add

* commitComp function format change

* api in texture-base remove
2020-10-26 16:13:41 +08:00
coulsonwang f875a56e02 add sphere and spot light handle (#7587) 2020-10-26 15:25:21 +08:00
Yun Hsiao Wu 40d959e718 gfx: pre-rotation on android (#7586) 2020-10-26 10:31:17 +08:00
pandamicro 6101d772a2 Merge remote-tracking branch 'origin/3d-v1.2' into 3d
# Conflicts:
#	EngineErrorMap.md
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/data/decorators/property.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/forward/scene-culling.ts
#	cocos/core/renderer/scene/model.ts
#	cocos/core/renderer/scene/shadows.ts
#	cocos/core/renderer/ui/mesh-buffer.ts
#	cocos/core/renderer/ui/ui-vertex-format.ts
#	cocos/core/scene-graph/scene-globals.ts
#	cocos/terrain/terrain.ts
#	cocos/ui/assembler/graphics/webgl/graphics-assembler.ts
#	cocos/ui/components/graphics.ts
#	editor/assets/default_prefab/3d/Capsule.prefab.meta
#	editor/assets/default_prefab/3d/Cone.prefab.meta
#	editor/assets/default_prefab/3d/Cube.prefab.meta
#	editor/assets/default_prefab/3d/Cylinder.prefab.meta
#	editor/assets/default_prefab/3d/Plane.prefab.meta
#	editor/assets/default_prefab/3d/Quad.prefab.meta
#	editor/assets/default_prefab/3d/Sphere.prefab.meta
#	editor/assets/default_prefab/3d/Torus.prefab.meta
#	editor/assets/default_prefab/Camera.prefab.meta
#	editor/assets/default_prefab/Terrain.prefab.meta
#	editor/assets/default_prefab/effects/Particle System.prefab.meta
#	editor/assets/default_prefab/light/Directional Light.prefab.meta
#	editor/assets/default_prefab/light/Sphere Light.prefab.meta
#	editor/assets/default_prefab/light/Spot Light.prefab.meta
#	editor/assets/default_prefab/ui/Button.prefab.meta
#	editor/assets/default_prefab/ui/Canvas.prefab.meta
#	editor/assets/default_prefab/ui/EditBox.prefab.meta
#	editor/assets/default_prefab/ui/Label.prefab.meta
#	editor/assets/default_prefab/ui/Layout.prefab.meta
#	editor/assets/default_prefab/ui/Mask.prefab.meta
#	editor/assets/default_prefab/ui/ProgressBar.prefab.meta
#	editor/assets/default_prefab/ui/ScrollView.prefab.meta
#	editor/assets/default_prefab/ui/Slider.prefab.meta
#	editor/assets/default_prefab/ui/Sprite.prefab.meta
#	editor/assets/default_prefab/ui/Toggle.prefab.meta
#	editor/assets/default_prefab/ui/ToggleContainer.prefab.meta
#	editor/assets/default_prefab/ui/Widget.prefab.meta
2020-10-21 18:35:11 +08:00
Jare Guo 0319477911 fix decorator warning of ValueTypes (#7553)
* fix decorator warning of ValueTypes (sync #6285)

* refresh copyright
2020-10-21 16:31:41 +08:00
coulsonwang b2c367b6f3 set native subMesh handle (#7566) 2020-10-21 13:45:39 +08:00
Yun Hsiao Wu 361e7149d7 UI: do most of the update before device sync (#7565) 2020-10-21 10:33:40 +08:00
Yun Hsiao Wu d61330ee03 discrete descriptor set layout bindings (#7536)
* allow discrete descriptor set layout bindings

* specialize local DS layout

* fix binding indices mapping

* fix shadows

* UI: update buffer after device.acquire

* update shadow phase name

* ext blend minmax support

* fix splash screen on native
2020-10-20 15:08:17 +08:00
ChiaNing eaaece1bf5 ui batch marge for stencil (#7540) 2020-10-16 14:00:22 +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
yinkaile 538ef92cb2 refine export pipeline (#7507)
* refine export pipeline

* export memory-pool
2020-10-15 15:54:57 +08:00