Using Nature shaders on iPhone

When I use the Nature/Vegetation Two Pass Unlit shader for a 700 triangle tree my frame rate to drops down to 15fps. When I switch it to something else (like Diffuse) the rates go up to 30fps.

I realize that the two pass shader is more expensive, but is it THIS expensive on the iPhone?

thanks.

The problem is the alpha blending and testing - the iphone is pretty bad at handling that

I don’t remember if the nature shader does that, but if it uses alpha testing and alpha blending in the same pass, try removing alpha testing from that pass.

This was one of the points from iPhone talk at Unite 2008: on regular platforms (PC/Mac), using alpha testing with alpha blending is faster. On iPhone, using both at the same time is slower.

…but then of course, iPhone is not that fast at blending at all.