• Advertisement
Sign in to follow this  

texture only one side of polygon

This topic is 3389 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all I want to texture one side of a polygon, so one side shows a texture, the other shows just the poly colour. Is there a way to do this like turning on a flag? I wrote my texture loader many months ago so might have turn a 2 sided flag on by mistake and have forgotten about it, thought I can't see it. Thanks in advance :)

Share this post


Link to post
Share on other sites
Advertisement
Draw your scene or model once with face winding set clockwise, and draw your texture; then set winding to counterclockwise and draw again without texture. Just be sure your model has the vertices ordered consistently to one side (as in inside/outside) to make sure your texture is always on one side, and the untextured on the other side.

Share this post


Link to post
Share on other sites
Enable polygon culling glEnable(GL_CULL_FACE)
and render 2 polygons at the same location. one front facing and the other backfacing.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement