Commit Graph

147 Commits

Author SHA1 Message Date
yinkaile bcec69da50 fixed render error (#2861)
* fixed render error

* refine code

* refine code
2018-06-15 15:42:49 +08:00
pandamicro 2a3a75e7fb Fix unit test and circle ci (#2858)
* fix test-animation bug (#2787)

* fix unit test (#2840)

* Improve Sprite & SpriteFrame impl

* Add Sprite inset function deprecation

* Fix unit tests

* fixed the circleci failed test but still pass the commit problem (#2814)

* CircleCI test failed but build successfully problem fixed (#2816)

* Fix Skeleton require

* Another Skeleton mistyping

* Fix phantom environment issues
2018-06-14 14:32:23 +08:00
yinkaile e95575c481 move blend factor to CCRenderComponent (#2854)
* move blend factor to CCRenderComponent

* refine code
2018-06-13 16:17:00 +08:00
pandamicro 2918403348 Fix color overwriting issue when sprite frame change (#2857)
* Fix color overwriting issue when sprite frame change

* Fix _localMatDirty type alter issue
2018-06-13 15:00:31 +08:00
pandamicro d5fe261cef Fix sliced uv calculation (#2790)
* Fix Sprite API doc

* Remove useless file

* Fix sliced uv calculation
2018-06-01 15:13:46 +08:00
pandamicro c3a9e6235b Improve render flag control in render component (#2695)
* Improve render flag control in render component

* Overwrite disableRender in Mask

* Secure markForUpdateRenderData for Sprite (check material)

* Fix particle auto remove process
2018-05-17 10:41:46 +08:00
yinkaile ec176ce336 refine activate material (#2685)
* refine label activateMaterial

* refine sprite activateMaterial

* refine motion streak activateMaterial
2018-05-15 18:44:45 +08:00
yinkaile 97c50c24de destroy dynamic atlas texture before loading scene (#2678)
* destroy dynamic atlas texture before loading scene

* refine code

* refine code
2018-05-15 11:33:46 +08:00
Knox 646a406ebd CCSprite spriteframe avoid RenderFlow.FLAG_RENDER (#2675) 2018-05-15 09:35:32 +08:00
pandamicro b4313de272 Fix issue caused by sprite.spriteFrame set to null (#2672) 2018-05-12 17:01:17 +08:00
yinkaile f8988b0aa8 reset dynamic atlas before scene loading (#2655)
* reset dynamic atlas before scene loading

* fixed node undo/redo
2018-05-09 15:40:21 +08:00
pandamicro ec9a718569 Issue fixes for 2.0 (#2650)
* Upgrade render engine

* Fix sprite rendering issue while loading sprite frame

* Fix mesh buffer initialization issue

* Fix color fromHEX

* Remove ;
2018-05-09 10:05:23 +08:00
yinkaile e4325577ad Next vertex format (#2645)
* restructure vertex format

* update render-engine.js

* refine vertex format

* refine sprite vertex property name
2018-05-08 21:51:27 +08:00
pandamicro 50c91c641c Use RenderFlow to optimize renderer visit process (#2634)
* Optimize (#2601)

* support render flow

* small improve

* small improve

* support different vertext format for buffer

* optimize dynamic atlas

* fixed sprite assemblers

* store uvs in spriteframe

* fixed issues

* fixed mask

* remove unused code

* small improve

* small fix

* upgrade assemblers

* refine code

* set id for vertex format name

* Fix mesh buffer initialize issue on native

* Fix spine node setting issue

* fixed dragonbone assembler (#2635)
2018-05-07 15:47:48 +08:00
pandamicro 87a8613c39 Fix issues (#2606)
* Fix _LocalDirtyFlag undefined issue

* Fix blend function intialization issue

* Fix graphic usage issue in spine assembler
2018-04-27 09:49:14 +08:00
pandamicro 38c61c70b4 Refactor EventTarget: remove hasListenerCache, move dispatch APIs to Node (#2595)
* Improve node property setter performance

* Avoid physics sync trigger events

* Improve callbacksHandler.has performance

* Use flag instead of hasListenerCache in animation state

* Remove hasListenerCache, add event target APIs for dispatch

* Fix some issues

* Fix event target has check

* Expose EventType and LocalDirtyFlag

* Move dispatch related APIs to Node and fix issues

* Refactor event target

* Fix sub listener usage for event target

* Improve code

* Remove callbacksInvoker.has
2018-04-26 21:50:27 +08:00
yinkaile 2ed79ae029 minor fixed 2018-04-18 11:53:22 +08:00
yinkaile 4ea054b46c support dynamic atlas packer 2018-04-15 18:08:55 +08:00
pandamicro 5823a23065 Add transform system to reduce matrix update overhead
Removed world-matrix-changed event, event system is too slow
2018-04-11 14:06:27 +08:00
yinkaile 4d8e97a4a9 support mesh sprite 2018-04-10 13:58:31 +08:00
yinkaile 4b44244fc2 support canvas label 2018-03-29 18:01:11 +08:00
yinkaile 0d5b02ac2a refactor sprite assembler to optimize performance 2018-03-23 15:42:16 +08:00
pandamicro 9f4a67a6f1 Improve material hash id update and compare 2018-03-21 16:39:36 +08:00
fusijie 10f56b59bd add_effect_hash 2018-03-21 16:39:36 +08:00
pandamicro f92894ea08 Remove CCTypes 2018-03-19 18:40:14 +08:00
pandamicro 920e4dbfa6 Remove CCPointExtensions 2018-03-19 18:04:55 +08:00
pandamicro 77febbfe3d Merge branch 'master' into next 2018-03-13 15:07:21 +08:00
pandamicro 283f5c17d6 Improve render data management by RenderComponent 2018-03-07 10:49:58 +08:00
fusijie 23fc401c80 fixed error spriteFrame textureLoaded called 2018-02-26 15:19:08 +08:00
Jare Guo a6fb92ad90 updating license 2018-02-01 09:38:54 +08:00
Jare Guo bd15543093 updating license: Chukong Aipu -> Xiamen Yaji 2018-01-31 17:51:49 +08:00
yinkaile ae7d762bd7 support edit box 2018-01-12 17:54:14 +08:00
yinkaile c1f88405b5 support sprite gray state 2018-01-09 16:12:25 +08:00
yinkaile 2efc147fe2 Merge branch 'next' of github.com:fireball-x/engine into next
# Conflicts:
#	cocos2d/core/CCDirectorCanvas.js
#	cocos2d/core/CCDirectorWebGL.js
#	cocos2d/core/base-nodes/CCSGNode.js
#	cocos2d/core/base-nodes/CCSGNodeBaseRenderCmd.js
#	cocos2d/core/sprites/CCSGSpriteWebGLRenderCmd.js
#	cocos2d/core/sprites/CCScale9SpriteWebGLRenderCmd.js
#	cocos2d/particle/CCParticleSystem.js
2017-12-26 16:11:50 +08:00
yinkaile 99cdd33327 fixed crashed when switch to the same scene again 2017-12-26 15:54:42 +08:00
yinkaile 5e78d1df2e remove unused code 2017-12-26 14:30:07 +08:00
pandamicro 8b70aec1df Stablize ParticleSystem component 2017-12-18 17:35:49 +08:00
pandamicro ac3add6a46 Improve render data management 2017-12-14 13:43:20 +08:00
pandamicro f8ca2a905e Fix simple sprite rendering issue 2017-12-14 13:41:57 +08:00
pandamicro ab619b4c00 Use walk to collect render component in array 2017-12-07 11:52:20 +08:00
pandamicro d98d0a7235 Add _renderComponent cache to Node 2017-12-07 11:52:20 +08:00
yinkaile d40706e3a6 support sprite filled mode 2017-12-05 18:30:14 +08:00
yinkaile ce8028cfe8 remove sprite component _sizeChanged 2017-12-05 11:12:58 +08:00
yinkaile adba83e897 fixed change sprite type 2017-11-30 16:45:39 +08:00
pandamicro a6a294f538 Major refactor to use render component walker for batching models 2017-11-29 13:55:36 +08:00
pandamicro 7be446a86b Upgrade to renderer.js v1.5.2 2017-11-22 16:15:43 +08:00
pandamicro c8188b5211 Merge remote-tracking branch 'origin/v1.7' into next 2017-11-22 13:58:23 +08:00
Jare Guo fb1751be8a Merge branch 'v1.6' into v1.7
# Conflicts:
#	cocos2d/core/sprites/CCScale9Sprite.js
#	jsb/jsb-etc.js
2017-10-29 01:03:44 +08:00
pandamicro dae88faa97 Remove Sprite useless properties 2017-10-26 11:09:40 +02:00
pandamicro d67cc47491 Fix SlicedModel rendering issue 2017-10-19 22:09:19 +02:00