Runtime wireframe rendering

Hey, I’ve been wondering if there is a way to do realtime rendering in wireframe. I’ve seen the scripts which make a particular object wireframe (untested) but because I want to render everything in wireframe I think it might be too intensive to run with each model handling it’s rendering. Is there no way to cause the main camera to render wireframe?

2 Answers

2

In Unity 4, you may use GL.wireframe.

Isn't GL unity pro? If it isn't now I'm certain it used to be

No, in Unity 4 it`s for free =)

Ooh! Excellent! Thanks! Do you have any idea how to implement it (or a link to a tutorial please)? I've never learnt to use GL :)

There is an example in the scripting reference http://docs.unity3d.com/Documentation/ScriptReference/GL-wireframe.html

oh... {facepalm} i tried that before but I put it in update :S haha thanks

Hi Charlie,

I totally recommend this:

Hope it helps!

Paul

Hey, that looks really good! The thing is, though, that this isn't going to be a major aspect of my game so I don't really want to have to pay $25 for something like that (I'm still very much an indie developer lol) But thanks, any idea of how to do it for free?