O'Reilly logo

OpenGL ES 3.0 Cookbook by Parminder Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Procedural texture shading with texture coordinates

Texture coordinates control the wrapping of texture on the surface of a model; these are 2D coordinates used to map texture on the 3D surface of the geometry. Texture coordinates are mapped to a different coordinate system called UV Mapping. Letters U and V denote the axis of the texture along the x and y axis, respectively:

Procedural texture shading with texture coordinates

The preceding extreme left image shows an icon that needs to be mapped to a blue-colored square of some arbitrary dimension. An image (irrespective of its dimensions) is always treated in the UV mapping between a range of 0 to 1 along the U and V axis, respectively. Therefore, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required