Commit Graph

102 Commits

Author SHA1 Message Date
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
Yun Hsiao Wu d4ba6cc007 fix planar shadow & instancing (#6823) 2020-06-04 16:39: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
Leslie Leigh (李的序) 421ed0fffb Morph target (#6400) 2020-03-23 23:40:57 +08:00
jiaxin.lai 216cb739b4 fix set of color & clear color (#6383)
* fix set of color & clear color

* add protect

* tweaks
2020-03-20 19:16:42 +08:00
Yun Hsiao Wu df6b7b5e60 better joint texture layout (#6372)
* better joint texture layout

* still need to update world matrix when batching

* shouldn't update instancing attributes for implant psos

* fix copy framebuffer to buffer

* fix texture multiple upload

* wording
2020-03-20 18:26:29 +08:00
Myway 458111b77c Support Lightmap options in light and model and small tweeks (#6366)
* 增加修改lightmap接口

* light-component增加bake参数

* 修改LightBakeType名字

* 新增lightmap属性设置
2020-03-19 15:46:50 +08:00
jiaxin.lai 4aac1be3f6 add ray_mesh to intersect (#6317)
* stash

* add ray_mesh

* stash

* ceche geometric info at runtime

* add ray_mesh & ray_model

* remove redundant data

* tweaks

* renaming
2020-03-17 16:54:57 +08:00
Myway d049b259f2 Lightmap and LightComponent refine (#6342)
* 增加修改lightmap接口

* light-component增加bake参数

* 修改LightBakeType名字
2020-03-17 16:19:45 +08:00
Yun Hsiao Wu a07ddb4bb1 Frame ID should be synced regardless of dirty flag (#6321) 2020-03-12 19:17:15 +08:00
Yun Hsiao Wu 45d182308b GPU instancing support (#6300)
* instancing works

* misc opts

* material.setproperty typing

* baked skinning model instancing works

* fix isNormalized

* custom chunk rules injection framework

* profiler instance count

* seperate custom joint textures

* fix joint mapped buffers

* WebGL 1 doesn't allow int attributes

* should rebuild instances after pso change

* set instance attribute

* constants naming
2020-03-12 10:21:19 +08:00
Leslie Leigh (李的序) 284aa38d25 Build time constants (#6256)
* consts

* Bump @cocos/build-engine version

* Fix

* Upload @cocos/build-engine

* Rm scripts/build-engine/.gitignore
2020-03-11 14:05:22 +08:00
Yun Hsiao Wu 2d431f7ec4 SubModel level joint data (#6260)
* submodel joints data

* map VB joint indices on demand

* fix joint mapping

* fix shadows

* minor
2020-03-09 21:45:37 +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
pandamicro b44dcc1115 Merge pull request #6220 from cocos-creator/3d-v1.0.4
Merge 3d v1.0.4
2020-02-25 10:12:28 +08:00
Yun Hsiao Wu c1c1a82946 API docs (#6174)
* API docs

* wording & tooltip

* update material
2020-02-21 10:20:29 +08:00
jiaxin.lai 576be92838 rename geom-utils to geometry (#6161) 2020-02-13 10:08:57 +08:00
ChiaNing 5f2f153ebc api doc update (#6130) 2020-02-08 23:44:36 +08:00
JoneLau a7a8cdbd05 [BUG] support api that have not yet been removed (#6097) 2020-01-14 15:53:52 +08:00
Yun Hsiao Wu e75b394008 fix convertToUINode (#6085) 2020-01-12 15:09:32 +08:00
zxg0622 7e26112852 fix modelcomponent attach scene bug (#6056) 2020-01-08 15:50:14 +08:00
Leslie Leigh (李的序) bdcc94bd33 Circular reference (#6050) 2020-01-08 12:38:40 +08:00
JoneLau ea700afb50 fix coordinate replace function (#6025)
save
2020-01-04 11:22:14 +08:00
JoneLau 845871214c fix circle code (#5991) 2019-12-28 14:06:22 +08:00