diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-09-15 17:29:06 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-03 11:43:03 +0200 |
commit | 0eec42dff07073d9e0cb955b0888f63e073f2a2a (patch) | |
tree | ddf298802cb028ba37f4199e7cd86d082e6ab927 /src/declarative/particles | |
parent | 66d56ad79f6294091a0d8691380edded6844bfc1 (diff) |
Don't draw itty-bitty particles
They look terrible when rounding errors catch up. Jerky movement and
flickering between N and N+1 square pixels when rendered.
Change-Id: Id27caa38de70a10537382962cc29a0f1254a91fc
Reviewed-on: http://codereview.qt-project.org/4949
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/declarative/particles')
-rw-r--r-- | src/declarative/particles/defaultshaders/imagevertex.shader | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/particles/defaultshaders/imagevertex.shader b/src/declarative/particles/defaultshaders/imagevertex.shader index 9967ef85a2..daf49fd287 100644 --- a/src/declarative/particles/defaultshaders/imagevertex.shader +++ b/src/declarative/particles/defaultshaders/imagevertex.shader @@ -81,6 +81,11 @@ void main() { else if(entry == 2.) currentSize = currentSize * fadeIn * fadeOut; + if(currentSize <= 0)//Sizes too small look jittery as they move + currentSize = 0; + else if(currentSize < 3) + currentSize = 3; + highp vec2 pos; #ifdef DEFORM highp float rotation = vRotation.x + vRotation.y * t * vData.y; |