Commit Graph

24 Commits

Author SHA1 Message Date
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
Yun Hsiao Wu ea071ffe48 minor 2018-12-28 16:36:57 +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
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
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
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
jerrywwl 1eec1fd9c8 add ts build & test files 2018-12-13 09:18:46 +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 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 4da594d906 impl texture2d using imageasset (#3488)
* 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
2018-11-14 22:29:37 +08:00
Yun Hsiao Wu e540797785 new adaptations for gizmos (#3438)
* gizmos adapt

* working texture cube

* misc fixes

* gizmo lighting
2018-10-31 11:54:58 +08:00
Yun Hsiao Wu 1943c9eb6d adaptation for editor camera (#3371)
* fix min build

* expose some useful utils

* fix color & node quat
2018-10-11 16:57:08 +08:00
Yun Hsiao Wu 24e099885f proper IA data extraction (#3323) 2018-09-28 18:46:58 +08:00
Yun Hsiao Wu ce920ebaff per-primitive raycast for editor (#3279)
* misc fixes in vmath

better vector random sampling
custom w in vec3.transformMat4

* prepare geometry data in editor mode

* per-primitive raycast for editor

* fix dependencies
2018-09-20 16:30:19 +08:00
Leslie Leigh f05972489c Skeleton asset and SkeletonInstance class (#3251)
* Modify part of asset classes

* Update import

* Update

* mesh-loader

* Update the import statement of JsonAsset as default import

* Rename files

* Remove old asset and asset-mng

* Copyrights

* Fix some bugs

* Fix imports of vmath classes; Fix errors of decorator property's ts comment notation;Adjust the order of member declarations for better IDE intelligense

* Transplant loader of animation clip; Unify export statement style according rules

* Skeleton asset and SkeletonInstance class

* Rename

* Fix material annotation

* fix import path

* fix annotation error

* Rename update to flush, fix index.js files.
2018-09-17 17:56:21 +08:00
Huabing.Xu 343023ee68 update to lastest 3D engine 2018-09-11 16:42:03 +08:00
Huabing.Xu 0f23cba394 add 3d files 2018-09-04 16:02:46 +08:00