Commit Graph

130 Commits

Author SHA1 Message Date
cary cc015e746e Add GPU particle renderer. (#6462)
* Add GPU particle renderer.

* refine code

* fix ci

* optimize the code

* refine code

* delete some if judgments

* fix strength billboard

* modify uniform update

* update uniform in editor

* fix api and some code specification

* fix uniform set
2020-04-08 10:44:08 +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
cary 6b98b1f41b Fix gl crash caused by Model destruction. (#6482)
* Fix gl crash caused by Model destruction.

* refine code

* add semicolon
2020-04-05 16:22:24 +08:00
Yun Hsiao Wu 172ab2fde7 don't restrict UBO update to once per frame (#6485) 2020-04-03 16:57:35 +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
Yun Hsiao Wu 1b365e7698 fix joint texture layout (#6453) 2020-03-31 16:50:34 +08:00
Yun Hsiao Wu 77724a7027 opt gfx webgl backend (#6411) 2020-03-30 13:02:40 +08:00
Yun Hsiao Wu 17ba87eea2 fix skybox (#6438) 2020-03-27 16:55:55 +08:00
Leslie Leigh (李的序) 421ed0fffb Morph target (#6400) 2020-03-23 23:40:57 +08:00
Yun Hsiao Wu 31715a725a fix quat.rotate (#6396) 2020-03-23 16:47:19 +08:00
Yun Hsiao Wu 85da544205 fix joint texture ref count (#6389) 2020-03-23 11:28:40 +08:00
jiaxin.lai d5b0e387a8 mark render-scene raycast as deprecated (#6385)
* mark render-scene raycast as deprecated

* fix ci
2020-03-23 10:44:19 +08:00
ChiaNing 644218fd09 Sprite Frame change (#6336)
* sprite-frame change

* spriteframe update

* set texture fix

* can render fix

* spriteframe textureLoaded fix

* update

* update

* texture loaded update

* refresh texture add

* format fix
2020-03-20 19:37:50 +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
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
JoneLau 1d03fa2ede complement the 3D UI API (#6172)
* complement the 3D UI API

* updated
2020-02-28 12:39:18 +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
JoneLau b73cce8959 fixed splash screen residue problem(supplement #6082) (#6199)
https://github.com/cocos-creator/engine/pull/6082
2020-02-24 15:06:16 +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
Yun Hsiao Wu 791e22c205 fix default stencil mask (#6117)
* linter

* fix default stencil mask

* more interface on camera matrices
2020-02-09 09:49:07 +08:00
Yun Hsiao Wu 3aec9cb125 raycast opt (#6113) 2020-01-15 17:00:46 +08:00
Yun Hsiao Wu 74bfa051d1 fix skinning model destroy (#6111)
* better raycast result

* fix skinning model destroy
2020-01-15 16:11:23 +08:00
Yun Hsiao Wu 0d34ba3b29 fix raycast skinning model (#6109) 2020-01-15 15:03:09 +08:00
Yun Hsiao Wu 9cf7f07a65 fix anim bounds & shader compiling (#6106) 2020-01-15 11:52:32 +08:00
JoneLau 8c34bd968b fixed a flash screen with false blend caused by multiple data destruction (#6082) 2020-01-12 15:02:16 +08:00
Yun Hsiao Wu bf6892a99e fix anim curve generation (#6077) 2020-01-12 14:54:29 +08:00
Yun Hsiao Wu 4c87e45539 fix stencil mask default constant (#6032) 2020-01-05 16:40:28 +08:00
Yun Hsiao Wu 88dac32d85 fix skel anim bounds reuse (#6028) 2020-01-04 08:34:01 +08:00
Yun Hsiao Wu 997bb7edd3 better profiler size calculation (#5998)
* better profiler size

* restore batching status when destroying model
2019-12-30 16:06:05 +08:00
Yun Hsiao Wu 5cc98d91f4 log about texture buffer pool format (#5988) 2019-12-27 19:21:53 +08:00
JoneLau 077cc5e5bc support invert mask (#5961)
* support invert mask

* fix bug

1. fix stencil no effect in material instance
2. fix the value of hit area
2019-12-26 17:31:22 +08:00
pandamicro 7a26eb2150 Merge pull request #5973 from cocos-creator/3d-v1.0.2
Merge 3d-v1.0.2 to 3d
2019-12-26 15:53:06 +08:00
zxg0622 39a7fbdd89 refactor material instance (#5910)
* refactor material instance

* revert setMaterial signature

* fix some defects

* material instance using inheritance (#5)

* material instance using inheritance

* renderable component

* more fixes (#6)

* more fixes

* minor

* fix some defects

* fix batching (#7)

* better format (#8)

* fix

* fix batching & skybox (#9)

* fix skinning (#10)

* change sharedMaterial decorator

* add modelcomponent property deprecated

Co-authored-by: Yun Hsiao Wu <inheritorofgalaxy@gmail.com>
2019-12-25 17:41:04 +08:00
JoneLau 7fc9bdefc0 add file of additional properties and transparency downward (#5948)
* add file of additional properties and transparency downward

* remove unless function
2019-12-23 23:46:59 +08:00
Yun Hsiao Wu 3513319c1e copyBuffersToTexture using ArrayBufferViews (#5945) 2019-12-23 16:10:46 +08:00
Yun Hsiao Wu 6edf4123ef shader version should be specified inside gfx (#5932) 2019-12-20 11:50:17 +08:00
Yun Hsiao Wu 0cd08e8441 fix web audio stop before play (#5927) 2019-12-19 15:02:28 +08:00
Leslie Leigh (李的序) 86636442cf Kill INode & IBaseNode (#5893)
* Remove INode, IBaseNode

* Fix

* Fix types error

* Update
2019-12-19 14:17:14 +08:00
Yun Hsiao Wu 0f12fb11e4 move data conversion out of animation clip (#5922)
* move data conversion out of animation-clip

* pre sample switch on skeletal anim comp
2019-12-18 18:47:45 +08:00
ChiaNing 70f13f7cb6 api doc update (#5909) 2019-12-18 15:42:26 +08:00
Yun Hsiao Wu 10c49e68f6 [chore] misc opts (#5898)
* pipeline linter fix

* instance support

* reuse render obejcts

* fix ci

* fix model ID
2019-12-18 14:35:34 +08:00
JoneLau 3334b78d36 adjust ui-static-batch-component interface (#5891) 2019-12-12 19:21:17 +08:00