Hello guys, Im doing this app aiming ios devices and i achieved a good result at iPad, but when i put the same app in iPhone4, it gets lagged and low fps(10 fps). I read a bit about what was doing that and now i think its aboult the shader... my project has 6 animated objects and more than 15 textures, some of them i tween. 99% of them have alpha and i think iphone4 is having some trouble to render it...
My question is: whats the best/fast shader to use for iOS iPhone4 for these objects with alpha??
Thank you very much,
Murillo.
PS: i got this shader from internet but it keeps spamming "Shader wants normals, but the mesh doesn't have them" on console.
Shader "Scripts/NewAlphaShader" {
Properties {
_Color ("Color Tint", Color) = (1,1,1,1)
_MainTex ("SelfIllum Color (RGB) Alpha (A)", 2D) = "white"
}
Category {
Lighting On
ZWrite Off
Cull Back
Blend SrcAlpha OneMinusSrcAlpha
Tags {Queue=Transparent}
SubShader {
Material {
Emission [_Color]
}
Pass {
SetTexture [_MainTex] {
Combine Texture * Primary, Texture * Primary
}
}
}
}
}