Commit Graph

991 Commits

Author SHA1 Message Date
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
Leslie Leigh (李的序) 3b31edae67 Fix once bug (#6889) 2020-06-17 12:01:11 +08:00
Yun Hsiao Wu dafb0ef102 misc fixes for vulkan (#6883)
* misc fixes for vulkan

* render window accepts external renderpass
2020-06-17 11:10:44 +08:00
coulsonwang fc73e6312c fix flip y (#6864) 2020-06-16 13:40:25 +08:00
Leslie Leigh (李的序) 83f553034e Treat node:eulerAngle curve as skeletal curve; skeletal blending for common targets (#6850)
* Treat node:eulerAngle curve as skeletal curve; skeletal blending for common targets

* Fix

* add test

* Fix

* Fix
2020-06-16 13:39:02 +08:00
Yun Hsiao Wu 3dc17bd634 D16S8 fallback to D24S8 on WebGL backend (#6879) 2020-06-16 13:06:41 +08:00
jiaxin.lai ccf457a594 emit some event before event processor destroy (#6878)
* emit some event before event processor destroy

* fix typing

* tweaks
2020-06-15 14:21:18 +08:00
Yun Hsiao Wu e88d1cae3d shader stores attribute info (#6866) 2020-06-15 09:56:31 +08:00
pandamicro a655f8189a Update effects 2020-06-14 19:38:02 +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
JoneLau ccb9bdadd8 use highp in builtin-sprite (#6873) 2020-06-12 19:31:48 +08:00
pandamicro 1349990fb8 Fix Color.set API (#6865)
* AudioClip & AudioPlayer playOneShot volume default value

* revert changes

* revert changes

* Color 类型定义错误

* Fix ci

Co-authored-by: k8w <me@k8w.io>
2020-06-12 12:18:14 +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
ChiaNing 282df6a9c1 fix acceleration event acc type error (#6862) 2020-06-11 17:52:17 +08:00
Yun Hsiao Wu a9e5ed552c fix node.setWorldScale (#6854) 2020-06-11 16:06:46 +08:00
Yun Hsiao Wu 896fcf3e37 fix node.setRTS (#6849) 2020-06-10 15:06:29 +08:00
Leslie Leigh (李的序) adfdb67bb8 Eliminate cc.* log functions invocation (#6845) 2020-06-10 14:19:11 +08:00
Leslie Leigh (李的序) 7b792b42d9 Type fix for inherited CCObject.destroy() (#6847)
* Type fix for inherited CCObject.destroy()

* Fix

* Fix
2020-06-10 14:03:46 +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
pandamicro 845fc81fce Improve CallbacksInvoker to remove __eventTargets mechanism (#6837)
* Improve CallbacksInvoker to remove __eventTargets mechanism

* Fix return value in Eventify.once

* Use isValid to check callback target validity

* Ensure event processor destroy during node destroy

* Fix node once can't remove touch/mouse listeners issue

* Strict check to include TO_DESTROY and DESTROYED state

* Remove execute and invoke directly in emit

* Fix ci
2020-06-09 11:23:20 +08:00
jiaxin.lai dac83d5f24 adapt for alipay (#6838) 2020-06-08 17:35:09 +08:00
Yun Hsiao Wu fa06dcdad3 fix additive light pass (#6829) 2020-06-08 16:39:12 +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
coulsonwang 46d2c3996f no need to flip render target texcoord for metal and vulkan (#6824) 2020-06-05 16:48:57 +08:00
pandamicro 8ed2199ae6 export PrimitiveType (#6814) 2020-06-04 16:49:31 +08:00
ChiaNing fca0664261 fix onHidden/onShow event bug (#6817) 2020-06-04 16:49:07 +08:00
Yun Hsiao Wu d4ba6cc007 fix planar shadow & instancing (#6823) 2020-06-04 16:39:57 +08:00
pandamicro 395265fc15 Merge pull request #6738 from YunHsiao/3d
merge 3d-gfx into 3d
2020-06-04 13:38:13 +08:00
ChiaNing 4775c33658 fix editbox input emoji fragment bug (#6810)
* fix editbox input emoji fragment bug

* update
2020-06-04 10:54:26 +08:00
Yun Hsiao Wu 3228b964f8 disable light pass for now 2020-06-04 10:39:14 +08:00
Yun Hsiao Wu 033226ec74 fix pass instance init 2020-06-04 10:19:37 +08:00
Yun Hsiao Wu c1b3382e06 Merge pull request #6 from minggo/patch_macro_issue
only concat not undefined patch macros
2020-06-03 18:35:29 +08:00
Yun Hsiao Wu b783e5fe92 handle restore operation (#6815) 2020-06-03 18:00:29 +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
Leslie Leigh (李的序) ca7b59229a Bug fix: animation in normal wrap mode won't stop their blend state writers (#6808)
* Bug fix: animation in normal wrap mode won't stop their blend state writers

* Add test
2020-06-03 16:30:13 +08:00
JayceLai e6cfa7115a export PrimitiveType 2020-06-03 16:29:51 +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
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 83f6c572b5 cc -> legacyCC 2020-06-03 13:38:17 +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
jiaxin.lai a0a7cc2f0b fix vertex index of ray model (#6809)
* fix vertex index

* tweaks
2020-06-02 19:59:09 +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
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 8086fe6494 fix skybox binding layout update (#6806) 2020-06-02 16:32:35 +08:00