PDA

View Full Version : Visualization of both Sides of a Plane



jenny_wui
08-27-2010, 02:03 AM
I have drawn a plane but have failed to visualise both sides of it. I can only see the top side. Is it possible to visualise both sides of it? Any answer will be highly appreciated.

Dark Photon
08-27-2010, 06:35 AM
I have drawn a plane but have failed to visualise both sides of it. I can only see the top side. Is it possible to visualise both sides of it? Any answer will be highly appreciated.
Yes, just disable CULL_FACE and then just implement two-sided lighting in your shader (a normal flip) (or look at LIGHT_MODEL_TWO_SIDE if you are using the fixed-function pipe).

jenny_wui
08-29-2010, 08:10 PM
Thank you very much for the reply. It works fine.