How can I make the self-illumination diffuse shader brighter on ES1?
It appears fine on ES2 but looks dull on ES1
Apr 09 '12 at 04:37 PM
You probably want to use Quad instead of double. However, you really should alter that shader; using greater than lowp isn't the most performant solution. Multiple MAD lines are better. http://answers.unity3d.com/questions/212675/lighting-less-intense-on-ios.html
@Jessy cheers I will try that. Where can I find the source for this particular shader?
They're prefaced by "Illumin" in the DefaultResources folder. And it's weird, but they didn't use the Double keyword in the fallback, so adding that will probably be fine. They're actually using "fixed" variables, as you'd want for devices running on a battery, for the main shader.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
asked: Apr 09 '12 at 04:37 PM
Seen: 476 times
Last Updated: Apr 10 '12 at 05:03 PM
Fastest Shader for iPhone
Why do Zwrite, Ztest, and Colormask simplifications not optimize shader performance?
What, exactly, in a shader, stops batching from happening?
Unity iPhone: difference between shader and iPhone-shader?
blob shadow z-fighting on iphone
Is one Offset parameter completely useless, on an iPhone, in a shader?
Shader looks different on iPhone and Editor
Unity iphone: blob shadow projected on shader with alpha
Toon Shader for the iPhone
Shading with cube maps on iPhone 3GS for Unity 3 beta