Results 1 to 2 of 2

Thread: KGL: Alphachannel for textures?

                  
   
  1. #1

    Default KGL: Alphachannel for textures?

    Hello! I'm using KGL from KOS 1.1.9 and I want to draw the textures with an alpha channel. It works very well to show transparancy but alpha channel doesn't work.

    If I change glColor(1.0f, 1.0f, 1.0f, 0.0f); to glColor(1.0f, 1.0f, 1.0f, 0.8f); I would expect that the texture has an alpha of 80%, right? But it has no effect.

    How I can draw textures with alpha? Is there another solution?

    Best regards
    Artchi

  2. #2
    DCEmu Coder
    Join Date
    Apr 2004
    Location
    The Netherlands
    Posts
    43
    Rep Power
    0

    Default

    Try doing something like this (before glColor):
    Code:
    glEnable(GL_BLEND);
    glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •