摘要 |
According to one approach, the present invention is embodied in a computer system and a computer implemented method for interpolating a color value for a pixel that is represented by a pair binary coordinates in a texture map. Each binary coordinate has an integer and a fractional portion. First, the fractional portions of the binary coordinates are multiplied together to generate a first sigma value. A known color value for a first of the four nearest texels is multiplied by the first sigma value to determine the first texel's contribution to the weighted average of the four nearest texels. Next, each bit of the first sigma value is inverted to generate an inverted first sigma value. Then, the fractional portion of one of the binary coordinates is added to the inverted first sigma value to generate a second sigma value. A known color value for a second of the four nearest texels is multiplied by the second sigma value to determine the second texel's contribution to the weighted average. The method continues until the weighted average has been calculated.
|