Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: texel formula

  1. #1
    Advanced Member Frequent Contributor
    Join Date
    Oct 2009

    texel formula

    Can someone please point me to where in the GLSL or OpenGL3.2 spec it is specified to which texel in a sampled texture texture coordinates (s, t, p, q) are mapped.

  2. #2
    Advanced Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003

    Re: texel formula

    Start with section 3.8.9, "Texture Minification". The rules for mipmap level determination and coordinate wrapping are spelled out there.

    See also section 3.6.1 "Basic Polygon Rasterization" which describes the barycentric coordinate interpolation.

Posting Permissions

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