uv mapping in Metal
- SwiftUI + Metal – Create special effects by building your own shaders - YouTube at 26:07
- What is UV mapping?
- Essentially UV Mapping is altering the position calculations from absolute pixel values to relative ratio values.
Case study
Width | X | UV |
---|---|---|
100 | 0 | 0 |
100 | 50 | 0.5 |
200 | 50 | 0.25 |