IPhoneGems


 * --BurningThumb 23:09, 22 July 2010 (PDT)
 * Attribution would be appreciated : http://www.Burningthumb.com

Description
The code provided by unity creates really bland gems if the GPU does not support cubemaps, which is true of iPhones. This modification to the shader in the unity gem pack fixes that issue.

Usage
This code behaves like the unity gem pack, except it also works on the iphone.


 * Download the Gem Shader
 * The iphone subshader will be chosen if the others can't be run, which they won't because they use cubemaps.
 * You can replace the gem shader entirely with this script, however you may wish to simply put the iphone code before the last subshader in the gemshader so if spheremaps aren't supported it still renders.
 * Textures applied to the "lowGPU" boxes in the inspector are used for the iphone.
 * The emissive color changes how bright the gem is.
 * The fog color is the colour this shader turns when the fog blocks it's geometry.

Disclaimer
We make no claim to have created the gem shader, however the iphone code was written by us. '''Attribution would be appreciated if you chose to use it in your project. '''