Results 1 to 3 of 3

Thread: Front and Backface different texture

  1. #1
    Member Contributor
    Join Date
    Feb 2009

    Front and Backface different texture


    Google could unfortunatelly not help me on that. Is it possible to use a different texture for the front and backFace of a quad for example?
    I guess so, but how?


  2. #2
    Senior Member Regular Contributor
    Join Date
    Dec 2008

    Re: Front and Backface different texture

    I don't know if there is a built-in function for this, but it should be easy enough to do in a shader.

  3. #3
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006

    Re: Front and Backface different texture

    If you do not want to use shaders, enable culling then for the 1st pass draw geometry in GL_FRONT culling mode binding the right texture and for the 2nd pass draw once again geometry but with GL_BACK culling mode and binding another texture.

Similar Threads

  1. 2D texture in front of 3D object
    By Ellusion in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-22-2016, 02:47 PM
  2. Replies: 5
    Last Post: 05-27-2015, 03:28 AM
  3. Texture to only on the front side
    By Efreet in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-02-2010, 12:53 AM
  4. raycasting backface texture lookup
    By kewuwsi in forum OpenGL: GLSL
    Replies: 3
    Last Post: 10-20-2008, 02:46 PM
  5. what is faster? fill front and back or only front
    By Jan in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 02-21-2002, 06:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean