Commit Graph

17466 Commits

Author SHA1 Message Date
minggo ba74dfed1a use 4 spaces (#2505) 2020-06-02 10:01:05 +08:00
coulsonwang 35d5ebd4bd generate mipmaps (#2483)
* generate mipmaps

* fix review

* fix review

* fix metal mipmap

* fix review
2020-06-02 10:00:41 +08:00
Yun Hsiao Wu 32efb3cf62 fix skinning shader (#6800) 2020-06-01 19:26:41 +08:00
Yun Hsiao Wu 8f9f09f119 fix skinning model instancing (#6799)
Apparently pre-calculating final offsets on CPU then pass to shader
requires more precision than what's actually provided on some devices.
Never mind, just go with the old ways.
2020-06-01 18:57:57 +08:00
yinkaile af3ae070be export ubo defines (#6791)
* export ubo defines

* export pipeline define things to cc.pipeline
2020-06-01 16:31:59 +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
Yun Hsiao Wu 7198381ed9 update comments (#6793) 2020-05-31 21:58:08 +08:00
pandamicro 1cefb4e04c Fix native rAF and cAF (#6792)
* Fix native rAF and cAF

* Update version
2020-05-31 14:50:51 +08:00
pandamicro 34eab244fc Fix crash caused by event target removal on destroyed component (#6790) 2020-05-29 19:49:30 +08:00
pandamicro 99a2269436 Fix window default rAF replacing issue (#6789)
* Fix window default rAF replacing issue

* Clear rAF before change mode
2020-05-29 19:22:39 +08:00
Yun Hsiao Wu 2b05eac155 should unbind VAO before unbind VB/IBs (#6788) 2020-05-29 19:08:34 +08:00
Leslie Leigh (李的序) c7fb63b1ec Mark event-related API of AnimationState as deprecated (#6772)
* Add 'last-frame-arrived' event; Optimize animation state events

* Doc

* Rename 'last-frame-arrived' -> 'iteration-end'

* Revert refine

* Doc

* Revert `iteration-end`

* CI
2020-05-29 18:38:51 +08:00
江战 a71b3d78b4 copy resource everytime (#2507) 2020-05-29 17:08:27 +08:00
CocosRobot 0e4538fc0e [AUTO][ci skip]: updating cocos2dx_files.json (#2510)
* [ci skip][AUTO]: updating jsbinding automatically

* [AUTO][ci skip]: updating cocos2dx_files.json
2020-05-29 17:07:39 +08:00
CocosRobot dc7795ce09 [ci skip][AUTO]: updating jsbinding automatically (#2509) 2020-05-29 17:07:25 +08:00
coulsonwang d7b5e1f3b6 fix dynamic states (#2488) 2020-05-29 15:57:31 +08:00
Yun Hsiao Wu b46d4cc89f more vulkan adaptations (#2479)
* vk: explicit location

* SDL main entry

* vk: unsuccessful attempt to workaround clearFlags

* vk: restore clear loadop

* vk: refine device feature framework

* gfx: fence

* overloads instead of default params

* fix ci compile issue

* fix ci compile issue

Co-authored-by: coulsonwang <coulsonwang@126.com>
2020-05-29 15:44:21 +08:00
pandamicro 0d01f9867e Fix Node & Scene incompatible issue (#6786) 2020-05-29 15:26:11 +08:00
Leslie Leigh (李的序) 2a2a56ad2b Solve the "once-off" problem (#6782)
* Solve the "once-off" problem

* Revert CallbacksInvoker

* Update

* Optimize
2020-05-29 15:20:49 +08:00
troublemaker52025 539efdee2e Add ShadowMap (#6778)
* Temporary modification that skyBox does not node

* add default Node for model

* revert
2020-05-29 15:15:47 +08:00
江战 cdadce9348 update travis configuration (#2503) 2020-05-29 14:53:07 +08:00
pandamicro 91a41a2c61 Safe emit game events to avoid editor startup failure (#6779)
* Safe emit game events so that it won't break editor startup

* Correct API

* remove useless indexof
2020-05-29 14:26:50 +08:00
jiaxin.lai afa7f892bb activate when not awake (#6781)
* activate when not awake

* cannon too
2020-05-29 14:26:34 +08:00
Leslie Leigh (李的序) ec8450459d Revert "Solve once-off problem (#6773)" (#6780)
This reverts commit a0cc2585b6.
2020-05-29 14:06:52 +08:00
Leslie Leigh (李的序) a0cc2585b6 Solve once-off problem (#6773) 2020-05-29 11:51:34 +08:00
Yun Hsiao Wu d84f5203d2 should reset cache when binding framebuffer (#6777)
* move bindpose finding outside frame loop

* should reset cache when binding framebuffer
2020-05-29 11:51:06 +08:00
CocosRobot 538dfabd34 [AUTO][ci skip]: updating cocos2dx_files.json (#2494) 2020-05-29 10:47:03 +08:00
CocosRobot aec6c9789d [ci skip][AUTO]: updating jsbinding automatically (#2502) 2020-05-29 10:45:34 +08:00
江战 b96a725238 Update tools/simulator with CMake / 3dgfx (#2496)
* update mac simulator

* remove template files

* rm build/
2020-05-29 10:44:22 +08:00
minggo 7156064446 add hash function for GFXInputAssembler and GFXFrameBuffer (#2501)
* add hash function for GFXInputAssembler and GFXFrameBuffer

* fix typo
2020-05-29 10:41:14 +08:00
Yun Hsiao Wu b108494b38 skeletal animation: handle indirect anim curve influence (#6774) 2020-05-28 19:51:57 +08:00
JoneLau 1a389cecbb Sorting UI components (#6739) 2020-05-28 19:49:59 +08:00
jiaxin.lai d328964501 revert 'optimize contact data' (#6776) 2020-05-28 19:02:23 +08:00
ChiaNing 7f4e9a4a41 invalidateChildren protect (#6775)
* invalidateChildren protect

* update
2020-05-28 17:52:00 +08:00
Yun Hsiao Wu 868ef4bf6d gfx: fence (#6749) 2020-05-28 16:51:16 +08:00
ChiaNing 50ee04c797 compressed texture alpha channel support (#6766)
* compressed texture alpha channel support

* update
2020-05-28 13:41:50 +08:00
jiaxin.lai 48ce494926 physics optimization (#6768)
* fix cannon shape center update

* add isA to differentiate the contact data

* sync optimize

* quat typing

* fix body sleeping state

* remove event after destroy

* typing

* fix time reset

* set mass default to 1

* skipBackFaces by default

* tweaks for ammo world step

* continue if sleeping

* checking before wake up

* Annotation specifications

* tweaks

* rename isA to isBodyA

* renaming
2020-05-28 13:39:15 +08:00
江战 082f432d2a remove unused code / 3dgfx (#2487)
* remove \*.mk

* support Makefile

* update default template

* fix path

* fix field type

* link resource instead of copy

* update external

* fix travis

* fix ssize_t macro

* fix macro 2
2020-05-28 11:24:14 +08:00
yinkaile 93802dae26 fixed scale not word (#6770) 2020-05-28 10:59:22 +08:00
CocosRobot 89e0cab7bb [ci skip][AUTO]: updating jsbinding automatically (#2492) 2020-05-27 18:35:37 +08:00
Yun Hsiao Wu 4629448659 skeletal animation: handle duplicated keys (#6769) 2020-05-27 18:34:54 +08:00
Yun Hsiao Wu c16393974f quat.prototype.slerp (#6764) 2020-05-27 17:47:57 +08:00
coulsonwang 4acd7ca62a fix metal crash (#2491)
* fix metal crash

* fix review
2020-05-27 17:46:20 +08:00
SijieWang 4d0c9c0249 Replace methods that cannot be used (#6743) 2020-05-27 17:35:34 +08:00
Leslie Leigh (李的序) 21e2712bf4 Add animation component event unit test (#6750)
* Add animation component event unit test

* CI
2020-05-27 16:23:22 +08:00
Yun Hsiao Wu 6df0bb5388 instance buffer: skip empty buffers (#6761) 2020-05-27 15:19:37 +08:00
Yun Hsiao Wu 4bed4fb6d1 fix quat.slerp (#6760) 2020-05-27 14:48:35 +08:00
Yun Hsiao Wu 569e8fdf70 instanced buffer: explicit stride check (#6757) 2020-05-27 14:05:10 +08:00
Leslie Leigh (李的序) 2c1ef7941f Improve typing (#6751) 2020-05-27 11:03:56 +08:00
Leslie Leigh (李的序) b4580ecfbf Animation events (#6737) 2020-05-26 15:50:22 +08:00