Texture Mapping Howto

DrWatson
Published in
atari
· 30 Nov 2023
WARNING: this document contains hazardous information and should be used with great caution! Also the code contained herein is of the c/c++ breed. Definitions: (u, v) coordinates: the (x, y) coordinates of a texture interpolation: (x2 - x1) / (y2 - y1) or (y2 - y1) / (x2 - x1). X and y don't have to be points, they could be colors. screen space: flat 2d space (3d space projected onto the sceen. scanline: a horizontal line, joining two opposite edges of a triangle. Affine Texture Mapping: Affine texture mapping is the easiest method to map a texture onto a triangle (or any polygon for that matter). I want to focus on textur...