Commit Graph

142 Commits

Author SHA1 Message Date
minggo 75331d43fc only concat none undefiend patch macros 2020-06-03 16:26:05 +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
Yun Hsiao Wu 8c1ee06416 profiler & splash screen works on Vulkan (#6731)
* gfx buffer init size shouldn't be 0

* fix splash screen

* fix profiler

* explicit attribute locations
2020-05-22 18:14:16 +08:00
minggo c471c80120 Not record command buffer in submodel (#6713)
* not use secondary buffer

* not record render commands in sub model
Will generate render commands in render stage.

* remove command buffers

* fix ci

* remove unneeded space

* remove unneeded space

* invoke super.destroy()
2020-05-19 18:38:24 +08:00
minggo 515bcd6df5 not clear ia information every frame (#6708)
* not clear ia data
i do not know why clear() is invoked every frame, so if clear ia data here, then render stage can not get correct ia data

* remove unneeded variables
as these informations are record in ia.
2020-05-19 12:42:02 +08:00
minggo 1aee1afddc not share InputAssembler object across UIDrawBatch objects (#6694)
* not share InputAssembler object across UIDrawBatch objects

* remove unneeded spaces

* UIDrawBatch.bufferBatch may return null

* set null after destroy object

* set attributes to null when destroyed
2020-05-17 12:24:12 +08:00
Yun Hsiao Wu a4ab634aff effect: shader stages (#6652)
* effect: shader stages

* update effect
2020-05-08 13:59:14 +08:00
pandamicro e849b7f3c6 Merge remote-tracking branch 'origin/3d-v1.1' into 3d-gfx
# Conflicts:
#	cocos/core/3d/builtin/effects.ts
#	cocos/core/game.ts
#	cocos/core/gfx/webgl/webgl-commands.ts
#	cocos/core/gfx/webgl2/webgl2-commands.ts
#	cocos/core/math/mat4.ts
#	cocos/core/renderer/scene/camera.ts
#	cocos/core/splash-screen-webgl.ts
#	cocos/core/splash-screen.ts
2020-04-28 17:06:07 +08:00
Yun Hsiao Wu 338738430d projection matrix gfx adaptations (#6540)
* fix batched buffer resize

* projection matrix gfx adaptations
2020-04-13 21:26:34 +08:00
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
minggo ac7421329e metal adapt (#6500) 2020-04-07 15:38:43 +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
pandamicro c47e1a1d1b Merge branch '3d' into 3d-gfx
# Conflicts:
#	cocos/core/game.ts
#	cocos/core/pipeline/batched-buffer.ts
#	cocos/core/platform/view.ts
#	gulpfile.js
2020-03-26 11:06:40 +08:00
minggo 89cf8b1345 Use correct gfx version for different platforms (#6384)
* use gles3 on iOS

* use gles3 on iOS

* add GFX API for other graphics

* print error log

* use correct gfx device on different platforms

* remove unneeded codes

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-03-24 15:07:21 +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