Non-culling shader

In 2.6, I had a shader that disabled backface culling. Now that the project has been converted to Unity 3, it no longer works, and the following comment was added to the shader:

#warning Upgrade NOTE: SubShader commented out; uses Unity 2.x per-pixel lighting. You should rewrite shader into a Surface Shader.

Does anyone have or know how to easily make a non-culling shader in Unity 3? I don’t care much about the other parameters of the shader, as it’s only be testing purposes.

Thanks!

http://unity3d.com/support/documentation/Components/SL-CullAndDepth.html

This here should give some pointers, especially the “Reveal Backfaces” shader listed mid-page.

Thanks, that did the trick.

How do you exactly change the shader anyway? Might help me with the backface culling problem.
And if you could give me a good shader code, i’d be even more happy.

Welcome NLmitchieNL. As a rule of thumb, when you ask about changing a shader then please post the code of the shader. Otherwise my answer would be: You open the shader with any text editor and edit it. In this case you add the line “Cull Off” at the appropriate place.

What do you mean with “a good shader code”? Is it supposed to do anything in particular?

It’s a property of the Renderer component. You can change it in the Inspector.