# Texture Mapping [slides](https://cseweb.ucsd.edu//~viscomp/classes/cse167/wi23/slides/lecture18.pdf) ![[Pasted image 20221229155743.png|500]] We we got familiar with the concept of mapping when we discuss [[2_viewing#Perspective Projection: `gluPerspective()`|perspective projection]] for viewing. Texture mapping is a similar concept. It's a function $\phi:S\rightarrow T$ which maps the 3D surface $S$ (with coordinate $(x,y,z)$) to to the 2D texture space $T$ (with coordinate $(u,v)$).