Commit Graph

87 Commits

Author SHA1 Message Date
zheng han 720d372bf7 3d rename class under geometry namespace (#7816) 2020-11-19 11:58:33 +08:00
minggo 14f81675ff fix circle dependence (#7808) 2020-11-18 10:41:45 +08:00
Yun Hsiao Wu 53112da281 fix skinning model world bound update (#7775) 2020-11-12 15:03:53 +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 32598c25cb switch to eslint (#7727)
* switch to eslint

* eslint: extends airbnb
2020-11-09 10:19:12 +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
Yun Hsiao Wu 7591bbbb20 misc bug fixes (#7644) 2020-10-30 20:33:04 +08:00
Yun Hsiao Wu a318283a41 fix pre-rotation adaptation (#7607) 2020-10-28 10:28:21 +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
minggo 8c93b9e890 clip shader.js/input-assembler.js/buffer.js (#7516) 2020-10-13 15:11:57 +08:00
minggo 249d4cd6fb use native Device (#7511) 2020-10-12 18:30:08 +08:00
Yun Hsiao Wu 9bba200429 array pool refactor (#7496)
* refactor array pool

* ModelView.INSTANCED_BUFFER

* MRT feature flag

* minor
2020-10-12 14:25:36 +08:00
pandamicro 7481303268 Merge branch '3d-v1.2' into 3d
# Conflicts:
#	cocos/core/3d/framework/camera-component.ts
#	cocos/core/assets/mesh.ts
#	cocos/core/components/component-event-handler.ts
#	cocos/core/game.ts
#	cocos/core/gfx/webgl/webgl-commands.ts
#	cocos/core/gfx/webgl2/webgl2-commands.ts
#	cocos/core/pipeline/define.ts
#	cocos/core/pipeline/forward/forward-pipeline.ts
#	cocos/core/pipeline/instanced-buffer.ts
#	cocos/core/pipeline/render-pipeline.ts
#	cocos/core/pipeline/shadow/shadow-flow.ts
#	cocos/core/renderer/scene/model.ts
#	cocos/core/renderer/scene/shadows.ts
#	cocos/core/renderer/scene/skybox.ts
#	cocos/core/splash-screen.ts
#	cocos/ui/components/button.ts
#	cocos/ui/components/editbox/edit-box-impl.ts
#	editor/assets/primitives.fbx
#	package-lock.json
#	package.json
2020-09-30 18:01:33 +08:00
ChiaNing 15a1806d18 API doc format change (#7456) 2020-09-28 16:52:52 +08:00
Yun Hsiao Wu c2e3de2caa GFX: public interfaces (#7444)
* public interfaces: render pass, IA, PSO

* public interfaces: Queue, Sampler, Shader, DSLayout

* public interfaces: DS, CB, Texture, Buffer, Device

* public interfaces: other supporting structs

* fix framebuffer state cache
2020-09-28 11:32:47 +08:00
Yun Hsiao Wu b021a20722 submit once per frame (#7401) 2020-09-18 13:38:19 +08:00
pandamicro 4b84548381 Finish core API translation (#7397) 2020-09-17 00:06:19 +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
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
pandamicro 3b66332823 Merge remote-tracking branch 'origin/3d-v1.1.1' into 3d-v1.2
# Conflicts:
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/animation/animation-state.ts
#	cocos/core/game.ts
#	cocos/core/gfx/webgl/webgl-commands.ts
#	cocos/core/pipeline/instanced-buffer.ts
#	cocos/core/pipeline/render-instanced-queue.ts
#	cocos/core/platform/event-manager/input-manager.ts
#	cocos/core/platform/view.ts
#	cocos/core/renderer/core/pass.ts
#	cocos/core/renderer/scene/planar-shadows.ts
#	cocos/core/splash-screen-webgl.ts
#	cocos/core/utils/profiler/profiler.ts
#	cocos/particle/renderer/trail.ts
#	cocos/terrain/terrain.ts
#	package-lock.json
#	package.json
#	predefine.ts
#	scripts/build-engine/package-lock.json
#	scripts/build-engine/package.json
#	scripts/build-engine/src/index.ts
2020-08-12 15:53:52 +08:00
Yun Hsiao Wu afeb83e9a6 native pools (#7028) 2020-08-04 14:14:56 +08:00
Yun Hsiao Wu 2bc580976f fix material hash calculation (#6965) 2020-07-09 18:32:22 +08:00
pandamicro c3bfb0b3a7 Cleanup import 2020-07-06 15:43:28 +08:00
minggo 10377de263 Remove texture view (#6830)
* fix conflict

* support creating texture view

* remove GFXTextureViewType

* set texture type to cube

* set status

* fix comment

* IGFXFramebufferInfo add mipmap level element

* set mipmap levels for all attachments

* make mipmap level optional

* fix comments
2020-06-09 11:23:34 +08:00
Yun Hsiao Wu d4ba6cc007 fix planar shadow & instancing (#6823) 2020-06-04 16:39:57 +08:00
minggo 5f2c00dda2 Merge branch '3d' into patch_macro_issue 2020-06-03 16:34:01 +08:00
minggo 2253d8aabd return correct patch macros 2020-06-03 16:33:02 +08:00
minggo 75331d43fc only concat none undefiend patch macros 2020-06-03 16:26:05 +08:00
Yun Hsiao Wu 69db70a910 Merge remote-tracking branch 'origin/3d' into 3d 2020-06-03 16:22:00 +08:00
Yun Hsiao Wu a5ce183aa7 pipeline layout can be globally reused too 2020-06-03 15:55:01 +08:00
SijieWang a9f3969245 Merge remote-tracking branch 'cocos-for-editor/3d-v1.1.1' into 3d
# Conflicts:
#	cocos/audio/assets/clip.ts
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/3d/framework/batched-skinning-model-component.ts
#	cocos/core/3d/framework/editor-camera-component.ts
#	cocos/core/3d/framework/index.ts
#	cocos/core/3d/framework/model-component.ts
#	cocos/core/animation/animation-clip.ts
#	cocos/core/animation/animation-manager.ts
#	cocos/core/animation/animation-state.ts
#	cocos/core/animation/skeletal-animation-component.ts
#	cocos/core/animation/skeletal-animation-state.ts
#	cocos/core/assets/mesh.ts
#	cocos/core/assets/simple-texture.ts
#	cocos/core/assets/sprite-frame.ts
#	cocos/core/assets/texture-base.ts
#	cocos/core/data/class-decorator.ts
#	cocos/core/data/instantiate.ts
#	cocos/core/event/event-target.ts
#	cocos/core/game.ts
#	cocos/core/load-pipeline/CCLoader.ts
#	cocos/core/load-pipeline/plist-parser.ts
#	cocos/core/load-pipeline/unpackers.ts
#	cocos/core/load-pipeline/url.ts
#	cocos/core/math/deprecated.ts
#	cocos/core/renderer/scene/model.ts
#	cocos/core/scene-graph/base-node.ts
#	cocos/core/scene-graph/scene-globals.ts
#	cocos/terrain/terrain.ts
#	predefine.ts
2020-06-03 13:25:42 +08:00
Yun Hsiao Wu 69c88434a4 Merge branch '3d-gfx' into 3d 2020-06-02 17:59:07 +08:00
minggo f44822c960 Create PSO in render stage (#6732)
* record PSO in sub model

* import Pass

* create PSO dynamically in render stage

* remove debug codes

* rmeove PSO in more components

* remove unneeded codes

* add comments

* subModel.psoCreateInfos -> subModel.psoInfos

* remove unneeded \!

* remove spaces

* remove unneeded codes

* IPSOCreationInfo -> IPSOCreateInfo

* add name into hash computing

* add GFXInputState back

* concat super's macro patches
2020-06-02 17:11:22 +08:00
Yun Hsiao Wu 8f9f09f119 fix skinning model instancing (#6799)
Apparently pre-calculating final offsets on CPU then pass to shader
requires more precision than what's actually provided on some devices.
Never mind, just go with the old ways.
2020-06-01 18:57:57 +08:00
Yun Hsiao Wu 13ec9c08f8 fix skinning model bounds (#6795)
* fix skinning model bounds

* fix instancing status query

* fix batched skinning model mesh cook
2020-06-01 16:16:51 +08:00
Yun Hsiao Wu 7198381ed9 update comments (#6793) 2020-05-31 21:58:08 +08:00
Yun Hsiao Wu d84f5203d2 should reset cache when binding framebuffer (#6777)
* move bindpose finding outside frame loop

* should reset cache when binding framebuffer
2020-05-29 11:51:06 +08:00
Yun Hsiao Wu b108494b38 skeletal animation: handle indirect anim curve influence (#6774) 2020-05-28 19:51:57 +08:00
Yun Hsiao Wu b42de567af fix skinning model pose calc when missing joint nodes (#6721)
* fix skinning model pose calc when missing joint nodes

* fix camera.worldToScreen when world pos is behind near plane

* fix batched skinning model material instantiation
2020-05-25 18:05:52 +08:00
Yun Hsiao Wu 3e1752d485 no need to maintain both buffers when instancing (#6703) 2020-05-18 10:30:53 +08:00
Yun Hsiao Wu dfaf43d732 planar shadow instancing support (#6692)
* refresh instanced attr on material update

* fix local binding check for builtin materials

* planar shadow instancing support
2020-05-17 12:48:31 +08:00
Leslie Leigh (李的序) 5e2adea787 Rename internal usages of global variable 'cc' into 'legacyGlobalExpo… (#6680)
* Rename internal usages of global variable 'cc' into 'legacyGlobalExports'

* Fix CI

* Rename 'legacyGlobalExports' -> 'legacyCC'
2020-05-14 15:46:45 +08:00
Yun Hsiao Wu 91b6178c80 fix socket animation in real-time mode (#6671) 2020-05-11 15:56:32 +08:00
Yun Hsiao Wu e39395b88c firefox bug workaround (#6651) 2020-05-07 15:16:46 +08:00
Yun Hsiao Wu f534c9d516 fix typo (#6625) 2020-04-27 18:49:23 +08:00
Yun Hsiao Wu 69559edb79 misc skinning model fixes (#6497)
* disable the source node after static batching

* disable the components instead

* fix joint texture release
2020-04-07 16:51:04 +08:00
Yun Hsiao Wu 172ab2fde7 don't restrict UBO update to once per frame (#6485) 2020-04-03 16:57:35 +08:00
Yun Hsiao Wu d8c16d72fb better anim data prep (#6460) 2020-04-01 12:15:51 +08:00
Yun Hsiao Wu 1b365e7698 fix joint texture layout (#6453) 2020-03-31 16:50:34 +08:00
Leslie Leigh (李的序) 421ed0fffb Morph target (#6400) 2020-03-23 23:40:57 +08:00