After working with Unity for a while, I decided to start using Unity for my iPhone games. Once I bought it however, I noticed many of the features didn’t work half as well as on a computer.
For instance, running at 11.4k Tris and 22 drawcalls, It’s nearly impossible to navigate around due to the lag.
Next, I’ve noticed many shaders don’t work either
Shader "Terrain/AlphaBlended" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_DetailTex ("Detail (RGB)", 2D) = "white" {}
_LowTex ("Low (RGB)", 2D) = "white" {}
_BlendMap ("BlendMap (RGBA)", 2D) = "white" {}
_LightMap ("LightMap (RGB)", 2D) = "white" {}
}
SubShader {
Pass {
Material {
Diffuse (1,1,1,1)
Ambient (1,1,1,1)
}
Lighting On
BindChannels {
Bind "vertex", vertex
Bind "color", color
Bind "texcoord", texcoord
}
SetTexture [_BlendMap] {
Combine texture
}
SetTexture [_DetailTex] {
Combine texture * previous
}
SetTexture [_MainTex] {
Combine previous lerp (previous) texture
}
SetTexture [_LightMap] {
Combine previous * texture
}
}
}
FallBack "Diffuse", 1
}
Next, when I add trees to the random terrain generator I coded, it lags to about 2 frames/second. Am I missing something, or did I just get ripped off?