Triangle textures

Triangular textures in Ptex are stored as power-of-two images with triangular texels.

For ease of storage and access, the texels are divided into even and odd texels and the odd texels are unfolded to form a rectangular image as shown below. The main differences between the triangle and quad textures are: