Commit Graph

136 Commits

Author SHA1 Message Date
jerrywwl 9ec52a9dda remove GFXVertexSemantic 2019-01-02 18:03:51 +08:00
jerrywwl 80d0339869 add model management to renderscene 2019-01-02 17:07:43 +08:00
jerrywwl 41c453bf19 rename scene-manager to render-scene 2019-01-02 16:15:26 +08:00
jerrywwl 56b53b2298 add a new scene manager 2019-01-02 15:28:51 +08:00
jerrywwl 01a2b85f5b bind vertex attribute location by builtin name 2019-01-02 12:30:42 +08:00
jerrywwl d9a9add5f5 fix crashes 2019-01-02 02:41:52 +08:00
jerrywwl 5744fff652 move cocos/renderer/pipeline to cocos/pipeline 2018-12-29 18:53:08 +08:00
jerrywwl f5b7bc17c6 Merge branch '3d' of https://github.com/jerrywwl/engine into 3d 2018-12-29 18:37:31 +08:00
jerrywwl ee936231cf update pipeline code 2018-12-29 18:37:24 +08:00
Yun Hsiao Wu d9c271ee00 structure 2018-12-29 18:28:35 +08:00
jerrywwl 7740474a80 add pipeline module 2018-12-29 16:53:59 +08:00
jerrywwl 0dc824f748 add createBindingLayout() to GFXDevice 2018-12-29 13:00:12 +08:00
jerrywwl a018da8891 make compilation sucess 2018-12-28 18:35:07 +08:00
jerrywwl 2b8aa22a1a Merge branch '3d' of https://github.com/jerrywwl/engine into 3d 2018-12-28 18:10:24 +08:00
jerrywwl d1626931ee Merge remote-tracking branch 'upstream/3d' into 3d 2018-12-28 18:09:00 +08:00
Yun Hsiao Wu ea071ffe48 minor 2018-12-28 16:36:57 +08:00
Leslie Leigh 1b89e35dac Small fix (#3688)
* revert user defined script menu

* texture default flipY

* Update texture-2d.js
2018-12-28 14:37:06 +08:00
jerrywwl d48482ef27 fix gfx crash 2018-12-28 10:49:04 +08:00
jerrywwl 0f542d6299 remove Buffer class reference 2018-12-27 13:31:47 +08:00
Leslie Leigh 3ed9edfbc6 phy framework (#3644)
* phy framework

* phy mat

* framework/index.ts

* a node can have more than one collider

* rename physical to physics

* fix

* fix

* support mix ts js

* fix

* fix problems in issue

* fix

* remove RigidBodyType, add DataFlow

* useGravity, freezeRotation, isKinematic

* raycasts

* fit buildin-world raycast options

* add contact material

* lint

* add rigid-body-component.ts

* some improvements

* improvements

* fix bug
2018-12-27 12:03:10 +08:00
jerrywwl 29ec7892fe fetch from upstream 2018-12-27 10:49:17 +08:00
jerrywwl aa78612da9 complete gfx 2018-12-27 10:07:56 +08:00
Leslie Leigh 05ebe174fb component menu (#3682) 2018-12-26 14:08:52 +08:00
jerrywwl 02c52a7796 mod gfx 2018-12-26 09:43:48 +08:00
Yun Hsiao Wu 4ef8426b36 resizable buffers (#3674) 2018-12-25 11:29:37 +08:00
Yun Hsiao Wu edf53462fa more robust editor preview (#3666) 2018-12-21 15:42:35 +08:00
Yun Hsiao Wu 367ae4ad3c render to texture (#3662) 2018-12-21 14:16:24 +08:00
Yun Hsiao Wu 04164f2767 fix node transform update (#3661) 2018-12-20 19:12:08 +08:00
Yun Hsiao Wu 1bbed51f26 fix transform & euler 2018-12-20 09:50:26 +08:00
jerrywwl 647c272091 add gfx code 2018-12-19 17:36:36 +08:00
Yun Hsiao Wu 148fc1a442 readPixels (#3650)
* better error reporting

* render texture
2018-12-19 14:17:52 +08:00
Santy-Wang 1a9a6e0de0 修改AssetLibrary初始化 (#3643) 2018-12-19 11:14:10 +08:00
Yun Hsiao Wu ec9bf142a1 builtin defines (#3633) 2018-12-14 15:51:28 +08:00
Yun Hsiao Wu a9110d6d6b fix builtin effects (#3627)
* texture cube serialization

* rebase

* rebase

* fix builtin effects

* minor

* fix texture cube

* texture serialize

* camera clear flag enum

* fix format
2018-12-14 14:18:37 +08:00
jerrywwl 1eec1fd9c8 add ts build & test files 2018-12-13 09:18:46 +08:00
Yun Hsiao Wu 17b5d9bda3 texture cube from texture2d (#3624)
* texture cube from texture2d

* fix format
2018-12-12 19:12:22 +08:00
Yun Hsiao Wu a1644369aa register effect on loaded (#3622) 2018-12-12 14:47:36 +08:00
Yun Hsiao Wu 2dc989e70e fix defines (#3618)
* fix defines

* fix material copy
2018-12-11 16:19:21 +08:00
Yun Hsiao Wu 6cffc59376 fix primitives (#3613)
* fix primitives

* defines & view clear color
2018-12-11 10:43:07 +08:00
Leslie Leigh d69ab0b3ee remove hack (#3614) 2018-12-10 17:02:30 +08:00
Leslie Leigh 0e08768802 upload joints info only when effect containning skinning function (#3610) 2018-12-09 22:55:52 +08:00
Leslie Leigh 5df8df4342 temp hack (#3608) 2018-12-07 16:59:51 +08:00
Leslie Leigh 578e811a82 animation in editor v3 (#3604)
* impl texture2d using imageasset

* texture-cube

* fix issue comment

* remove initWithElement and initWithData; fix issue comment

* define TextureUpdateOpts in gfx/texture-2d.js

* optimize some `new ImageAsset`; optimize image-asset; add updateMipmaps() to Texture2D

* use onLoaded, remove hack

* animation in editor v3
2018-12-07 14:47:27 +08:00
Yun Hsiao Wu 1850cabe7b Effect Improvements (#3599)
* default material

* remove effects

* better builtin effects

* builtin primitives

* fix material

* builtin uniforms

* fix percision
2018-12-07 14:38:53 +08:00
Yun Hsiao Wu 64adf77910 Maintain Node EulerAngles & Effect Asset interface (#3574)
* node euler

* transparent sort

* fix node dirty

* fix material onLoaded

* effect asset uuid get

* dont store effectName in material
2018-12-05 17:52:21 +08:00
Yun Hsiao Wu 58e59701ba Unified effect/shader assets (#3559)
* modify render piplien p1

* new effect format

* minor refactor

* mod render pipelien p1

* process queues and stages offline

* choose tech on load

* fix second pass

* modify render pipeline p2

* minor

* stage item default

* support render queue below opaque constant

* fix shadow stage in new render pipeline

* unified shader assets

* unified shader assets: parser

* add technique lod

* unified shader assets: pipeline

* fix some defect

* fix some defect

* fix effect asset cid

* game init

* minor fix
2018-12-03 13:59:36 +08:00
Leslie Leigh 2c7e120d14 default material use phone effect;fix skinning model bug (#3571)
* impl texture2d using imageasset

* texture-cube

* fix issue comment

* remove initWithElement and initWithData; fix issue comment

* define TextureUpdateOpts in gfx/texture-2d.js

* optimize some `new ImageAsset`; optimize image-asset; add updateMipmaps() to Texture2D

* use onLoaded, remove hack

* default material use phone effect;fix skinning model bug
2018-11-29 18:23:04 +08:00
Santy-Wang ac13fe5434 add an optional parameter named 'mount' to indicate in which folder you want to load asset (#3562) 2018-11-27 15:38:07 +08:00
Yun Hsiao Wu 48e9606f0c adaptations for new editor (#3513)
* HideInHierarchy

* resetHasChanged

* dont inherit skybox from RenderableComponents

* transform changed event
2018-11-21 10:52:26 +08:00
Yun Hsiao Wu 4644779ad7 new shader format (#3505)
* new shader format

* neW effect file extension
2018-11-21 10:47:56 +08:00