Friday, May 1, 2009

GL_LINEAR & GL_NEAREST

GL_LINEAR caused some problems where occasionally there would be borders around some textures. For some reason, you can't actually start them at 0.0 and end at 1.0. You have to start at 0.0+d and end at 1.0-d where d = 0.5/(width) or 0.5/(height) depending on the dimension. So I decided to go with GL_NEAREST instead even though GL_LINEAR is supposed to "look" better.

31 comments:

  1. Circumstances are the rulers of the weak, instrument of the wise.........................................

    ReplyDelete
  2. 以簡單的行為愉悅他人的心靈,勝過千人低頭禱告........................................

    ReplyDelete
  3. 在莫非定律中有項笨蛋定律:「一個組織中的笨蛋,恆大於等於三分之二。」.................................................................

    ReplyDelete
  4. 生存乃是不斷地在內心與靈魂交戰;寫作是坐著審判自己。......................................................................

    ReplyDelete
  5. 唯有用熱情、用智慧去觀察事物,這事物才會把他的秘密,洩漏給我們............................................................

    ReplyDelete
  6. 真正仁慈的人,會忘記他們做過的善行,他們全心投入現在的工作,過去的事已被遺忘。.................................................

    ReplyDelete