Sign in to follow this  
knobby67

texture only one side of polygon

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this