Vertex sharder on the iPad (with 3.0)

Will vertex shaders work on the iPad (using Unity 3.0)?

I’m referring to sharders like the old “Nature Windy Grass/Leaves”.

Thanks.

yes, as do pixel shaders, given you build your application with ARMV6 and ARMV7 target from unity

Great… I thought so, but the shader I have isn’t working on the iPad. I’m using a Nature Windy Leaves shader. I’m Player Setting are “arm 6 + arm 7 (OpenGL ES1.1.+2.0)” and “iPad only”.

The shader does work in the editor, when the graphic emulation is “iPhone 3GS, iPad OpenGL ES 2.0”.

Does anyone know of a “windy” shader that will work on the iPad?

I’ll attach the shader I’m using.

370806–12840–$nature_windy_leaves_166_118.shader (5.83 KB)

the shader has an explicit statement to exclude gles, so I would guess that explains why it does not work :wink:

and if it excludes it, it potentially has a reason like relying on things not available on glsl ES

You could do it the ‘old school way’ and animate your mesh data manually.

Harry