LWJGL Forum

Programming => OpenGL => Topic started by: matanui159 on May 16, 2014, 03:26:55

Title: Remove back half?
Post by: matanui159 on May 16, 2014, 03:26:55
I notice in some games (like Garry's mod) that when you go inside a model and look at the back of the material you don't see anything. You just look straight through it?

Can you do this in opengl? Will it speed it up? How do I do it?

Thx in advance.
Title: Re: Remove back half?
Post by: Cornix on May 16, 2014, 06:13:19
This is called "culling", you can cull either the backface, the frontface, both or neither.
Google for the apropriate gl functions.
Title: Re: Remove back half?
Post by: quew8 on May 17, 2014, 18:00:01
And yes, it will speed it up.