Vertex program max instructions limit

Is there any way to increase the 1024 instructions limit in a vertex program when using a surface shader as such : #pragma surface surf Lambert vertex:vert?

In my case, the vert function generates an error complaining about the max (1024) instructions in the shader.

Thanks!

Hm, the docs say, with #pragma target 3.0 it should support “ARB_vertex_program with no instruction limit and ARB_fragment_program with 1024 instruction limit (512 texture + 512 arithmetic)”

OK, finally found a solution. Adding #pragma target 3.0 helped, but it wasn’t enough. I needed to add #pragma exclude_renderers opengl to compile the shaders without any instruction limit errors.

Thanks Wolfram!