Commit Graph

903 Commits

Author SHA1 Message Date
Yun Hsiao Wu 9ca7c2ce6e directional light stack (#6813)
* directional light stack

* hasChangedFlags: bitwise or instead of direct assignment
2020-06-03 15:02:57 +08:00
jiaxin.lai a0a7cc2f0b fix vertex index of ray model (#6809)
* fix vertex index

* tweaks
2020-06-02 19:59:09 +08:00
Yun Hsiao Wu 8086fe6494 fix skybox binding layout update (#6806) 2020-06-02 16:32:35 +08:00
pandamicro def53e4c74 Restore ImageAsset destroy logic to help destroy Image (#6804) 2020-06-02 13:52:55 +08:00
jiaxin.lai 7079d5e1af Fix ray_subMesh/mesh/model (#6801)
* fix ray_subMesh/mesh/model

* tweaks

* tweaks

* tweaks

* fix ray_model

* tweaks

* tweaks

* docs

* tweaks
2020-06-02 12:54:05 +08:00
pandamicro 51ecb2f1af Fix CLEANUP_IMAGE_CACHE not working issue (#6803) 2020-06-02 11:25:40 +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
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
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
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
Yun Hsiao Wu b108494b38 skeletal animation: handle indirect anim curve influence (#6774) 2020-05-28 19:51:57 +08:00
ChiaNing 7f4e9a4a41 invalidateChildren protect (#6775)
* invalidateChildren protect

* update
2020-05-28 17:52:00 +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
yinkaile 93802dae26 fixed scale not word (#6770) 2020-05-28 10:59:22 +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
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
Myway 5c1d3fa370 fix typo (#6740)
* fix typo

* fixed serialize decorator

* fix serialize formerly
2020-05-25 20:53:12 +08:00
Yun Hsiao Wu b42de567af fix skinning model pose calc when missing joint nodes (#6721)
* fix skinning model pose calc when missing joint nodes

* fix camera.worldToScreen when world pos is behind near plane

* fix batched skinning model material instantiation
2020-05-25 18:05:52 +08:00
zheng han c801a4e3a6 export ccenum (#6714) 2020-05-25 17:59:34 +08:00
Leslie Leigh (李的序) b531f78148 Fix a language semantic violation (#6674) 2020-05-25 17:35:48 +08:00
pandamicro a5c238dabb API translations in core (#6726)
* Add API translation for load pipeline

* Add API translation for core/data

* Fix decorator declarations

* API translation for scene graph

* Fix ci

* Fix ci

* Improve Eventify for event emit performance

* Fix ci

* improve format
2020-05-25 15:26:02 +08:00
Leslie Leigh (李的序) 9306b0ba8f Allow some static member of class to be type (#6724) 2020-05-22 18:03:05 +08:00
Leslie Leigh (李的序) ac3406082f Implements EventTarget in a better way (#6571)
* Implements EventTarget in a better way

* Fix

* Update

* Use Object instead of empty class

* Comment

* Revert "Use Object instead of empty class"

This reverts commit 3d41c70064d74c10a7b5ece2da5593ca9e8ac877.

* Eventful -> Eventify
2020-05-21 16:48:17 +08:00
ChiaNing e91bbfef44 gfx define bug fix for ETC2 (#6729) 2020-05-21 16:05:52 +08:00
JoneLau cc722a6ae0 fix warning about super.xxx = xxx (#6701) (#6718)
cherry pick branch 3d, link #6701
2020-05-20 10:52:14 +08:00
JoneLau 53e758356a property name synchronization (#6681) 2020-05-18 17:55:33 +08:00
Yun Hsiao Wu 3e1752d485 no need to maintain both buffers when instancing (#6703) 2020-05-18 10:30:53 +08:00
Yun Hsiao Wu dfaf43d732 planar shadow instancing support (#6692)
* refresh instanced attr on material update

* fix local binding check for builtin materials

* planar shadow instancing support
2020-05-17 12:48:31 +08:00
ChiaNing 65ab2b9bf4 Create spriteframe function change (#6693)
* create spriteframe function change

* name change
2020-05-15 14:04:44 +08:00
ChiaNing 2044c6a8da create spriteframe function add (#6687)
* create spriteframe function add

* name change
2020-05-15 11:15:27 +08:00
ChiaNing a1512a099a widget lock value add (#6655)
* widget value lock

* remove change to editor

* editorOnly add
2020-05-14 17:45:19 +08:00
ChiaNing 826d53d9b0 compressedTexImage2D function change for compress texture (#6685)
* compressedTexImage2D function change for compress texture

* update
2020-05-14 15:34:18 +08:00
Leslie Leigh (李的序) 759bdbac51 Optimize non-morph plain ModelComponent (#6620)
* Optimize non-morph plain ModelComponent

* Do optimize also when every sub mesh morph is null
2020-05-11 17:22:30 +08:00