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 »

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]
mikefalk
Gnoblar
Posts: 11
Joined: Mon Oct 15, 2012 11:30 am

Re: alpha rejection on ipad problem

Post by mikefalk »

The answer is using highp float instead of mediump float in shader programs. :D
Post Reply