Commit Graph

123 Commits

Author SHA1 Message Date
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
JoneLau 9740818fda modify description (#7106) 2020-08-13 11:53:16 +08:00
pandamicro bc06db685c Merge remote-tracking branch 'origin/3d-v1.2' into 3d-v1.2 2020-08-13 11:24:00 +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
SB f0882d6272 Optimize some documents 2020-08-06 17:23:06 +08:00
Leslie Leigh (李的序) 26df6fb1c0 Optimize editor decorators (#7002) 2020-08-05 10:36:52 +08:00
Myway 77186a5c5b lightmap instancing (#7070)
* lightmap instancing

* fix planar shadow instancing
2020-08-04 16:58:47 +08:00
Yun Hsiao Wu afeb83e9a6 native pools (#7028) 2020-08-04 14:14:56 +08:00
Yun Hsiao Wu 606c5d21fa fix gfx texture info naming (#6998)
* fix gfx texture info naming

* move instanced/bathced buffer out from pass
2020-07-24 11:31:43 +08:00
troublemaker52025 d26ce6b78b Add Shadow map (#6972)
* add easy shadow

* update

* update

* manage pso

* manage psoCI array

* solve a bug

* Optimization

* depth test is not accurate

* Conflict resolution

* Conflict resolution

* solve pr

* optimization

* update

* optimization

* optimization
2020-07-21 18:42:33 +08:00
Yun Hsiao Wu 2777122b1f refactor render texture (#6942) 2020-07-10 14:23:22 +08:00
Yun Hsiao Wu 2bc580976f fix material hash calculation (#6965) 2020-07-09 18:32:22 +08:00
Leslie Leigh (李的序) 9b2b7779a9 Type-only namespaces should be 'declare' (#6947) 2020-07-03 18:45:22 +08:00
Yun Hsiao Wu 33c3c841d7 fix material hash calculation (#6933) 2020-06-28 11:55:21 +08:00
pandamicro b2830f5271 Merge remote-tracking branch 'origin/3d-v1.1.1' into 3d
# Conflicts:
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/3d/framework/light-component.ts
#	cocos/core/3d/framework/model-component.ts
#	cocos/core/animation/animation-state.ts
#	cocos/core/assets/image-asset.ts
#	cocos/core/data/object.ts
#	cocos/core/event/callbacks-invoker.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/platform/event-manager/events.ts
#	cocos/core/primitive/primitive.ts
#	cocos/core/renderer/scene/model.ts
#	cocos/core/renderer/scene/render-scene.ts
#	cocos/core/root.ts
#	cocos/core/scene-graph/node-event-processor.ts
#	cocos/core/splash-screen-webgl.ts
#	cocos/particle/index.ts
#	cocos/terrain/terrain.ts
#	exports/base.ts
2020-06-17 14:47:36 +08:00
pandamicro 6b0a37d84a Fix typo 2020-06-14 19:36:41 +08:00
pandamicro afa9418ba2 Update effects 2020-06-14 19:36:41 +08:00
Myway 878707fea6 model component support lighting map (#6796)
* 模型支持lighting map渲染

* change static lighting settings
# Conflicts:
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/3d/framework/model-component.ts
#	cocos/core/renderer/scene/model.ts

# Conflicts:
#	cocos/core/3d/builtin/effects.ts
2020-06-14 19:36:41 +08:00
Yun Hsiao Wu f70f2dd6e3 move window out from GFX (#6844)
* window info accepts render pass

* move window out from GFX

* update effects

* fix formating

* match shader location to IA attributes
2020-06-12 10:56:47 +08:00
pandamicro e746d54086 Fix image release for CLEANUP_IMAGE_CACHE (#6836)
* Fix potential gl texture leak

* reorder

* Fix Model.recieveShadows deprecation

* Fix image destroy for CLEANUP_IMAGE_CACHE
2020-06-07 18:10:37 +08:00
Yun Hsiao Wu d4ba6cc007 fix planar shadow & instancing (#6823) 2020-06-04 16:39:57 +08:00
Yun Hsiao Wu b783e5fe92 handle restore operation (#6815) 2020-06-03 18:00:29 +08:00
Yun Hsiao Wu 9ca7c2ce6e directional light stack (#6813)
* directional light stack

* hasChangedFlags: bitwise or instead of direct assignment
2020-06-03 15:02:57 +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
Myway c44bff541d model component support lighting map (#6796)
* 模型支持lighting map渲染

* change static lighting settings
2020-06-02 17:09:18 +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
Leslie Leigh (李的序) 2c1ef7941f Improve typing (#6751) 2020-05-27 11:03:56 +08:00
Myway 5c1d3fa370 fix typo (#6740)
* fix typo

* fixed serialize decorator

* fix serialize formerly
2020-05-25 20:53:12 +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
Leslie Leigh (李的序) 9306b0ba8f Allow some static member of class to be type (#6724) 2020-05-22 18:03:05 +08:00
JoneLau cc722a6ae0 fix warning about super.xxx = xxx (#6701) (#6718)
cherry pick branch 3d, link #6701
2020-05-20 10:52:14 +08:00
JoneLau db2cb88678 fix warning about super.xxx = xxx (#6701) 2020-05-20 10:20:50 +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
Leslie Leigh (李的序) 759bdbac51 Optimize non-morph plain ModelComponent (#6620)
* Optimize non-morph plain ModelComponent

* Do optimize also when every sub mesh morph is null
2020-05-11 17:22:30 +08:00
Yun Hsiao Wu 944f9c7d81 fix batched skinning model init (#6649) 2020-05-06 18:42:26 +08:00
Leslie Leigh (李的序) c9462d94a5 Typo (#6621) 2020-04-28 14:48:48 +08:00
Yun Hsiao Wu f534c9d516 fix typo (#6625) 2020-04-27 18:49:23 +08:00
zhangyiwenzyw fdf26192db move EditorCameraComponent to editor project (#6619) 2020-04-26 13:45:43 +08:00
Yun Hsiao Wu 48f9321cf6 better camera doc (#6588) 2020-04-21 16:12:17 +08:00
Yun Hsiao Wu fe46a6c973 should trigger camera matrix update onEnable (#6561) 2020-04-15 17:02:47 +08:00
Yun Hsiao Wu 3bedccdeaa fix skinning model type when not enabled immediately (#6542)
* fix skinning model type update

* unbatch util

* camera property display order

* fix model type order
2020-04-14 12:47:58 +08:00
Yun Hsiao Wu 34686586b1 update skybox effect (#6509) 2020-04-08 16:33:13 +08:00
Yun Hsiao Wu d9ebca6ed7 should update FOV when set FOV axis (#6503) 2020-04-07 18:13:49 +08:00
Yun Hsiao Wu 89a43b50e8 camera FOV axis (#6501)
* fov axis

* deprecation
2020-04-07 17:49:52 +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 9925844829 better docs (#6496) 2020-04-07 11:36:12 +08:00
Yun Hsiao Wu 5267f8bf68 simpler animation clip hash (#6479) 2020-04-02 23:03:13 +08:00
Yun Hsiao Wu d8c16d72fb better anim data prep (#6460) 2020-04-01 12:15:51 +08:00
黄森斌 5aaae03612 components add @help for editor show document url (#6428) 2020-03-26 18:42:08 +08:00
Leslie Leigh (李的序) 14982d340a Morph optimize (#6410) 2020-03-25 12:09:34 +08:00