alpha rejection on ipad problem

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
Post Reply
mikefalk
Gnoblar
Posts: 11
Joined: Mon Oct 15, 2012 11:30 am

alpha rejection on ipad problem

Post by mikefalk » Mon Mar 04, 2013 11:22 am

I have a problem with material with alpha rejection on ipad. The material have shader with

Code: Select all

if(color.a<0.5) discard;
code.
The mesh with such material is shaking when we moving the camera like this
[youtube]OZIrwDvhscw[/youtube]
0 x

mikefalk
Gnoblar
Posts: 11
Joined: Mon Oct 15, 2012 11:30 am

Re: alpha rejection on ipad problem

Post by mikefalk » Thu Apr 25, 2013 7:01 am

The answer is using highp float instead of mediump float in shader programs. :D
0 x

Post Reply