Author Topic: Fast Shader with Clipping, Color and Alpha  (Read 2546 times)

sunkas

  • Guest
Fast Shader with Clipping, Color and Alpha
« on: November 21, 2012, 10:16:39 AM »
Hi

We're having some trouble with the standard shader Unlit - Transparent Colored. It's to slow on iPhone 4. We've downloaded and tried some custom shaders but none that support all our demands. We want a shader that support:

- Clipping (hard)
- Coloring
- Is faster than "Unlit - Transparent Colored" with a lot of sprites on iphone 4.
- Support alpha (optional, we considered splitting our images into two atlases so if alpha is not supported this is still good for us. But preferably alpha as well!)

Best Regards
Jonas Andersson

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Fast Shader with Clipping, Color and Alpha
« Reply #1 on: November 21, 2012, 05:34:59 PM »
See here: http://www.tasharen.com/forum/index.php?topic=2084.msg11458#msg11458

When coding for mobiles, minimize overdraw the best you can. That is, limit the amount of overlapping widgets. The fewer things you have overlapping, the faster everything will perform.