11 KiB
| title | chunk | source | category | tags | date_saved | instance |
|---|---|---|---|---|---|---|
| Texel - Glossary | MDN | 1/3 | https://developer.mozilla.org/en-US/docs/Glossary/Texel | reference | web, html, css, javascript, documentation | 2026-05-05T05:47:07.514679+00:00 | kb-cron |
MDN HTML HTML: Markup language
HTML reference
HTML guides
Markup languages
CSS reference
CSS guides
Layout cookbook
JavaScriptJS JavaScript: Scripting language
JS reference
JS guides
Web APIs Web APIs: Programming interfaces
Web API reference
Web API guides
- Using the Web animation API
- Using the Fetch API
- Working with the History API
- Using the Web speech API
- Using web workers
Technologies
Topics
Learn Learn web development
Frontend developer course
- Getting started modules
- Core modules
- MDN Curriculum
- Check out the video course from Scrimba, our partner
Learn HTML
Learn CSS
Learn JavaScript
Tools Discover our tools
About Get to know MDN better
Texel
In 3D graphics, a texel is a single pixel within a texture. Textures are images presented on a polygon's surface within a 3D rendered image. A texture is characterized by a collection of texels, similar to how an image is characterized by a collection of pixels. A pixel in a raster image file is a series of bits containing color data, and sometimes opacity data, which maps to display pixels on an output device such as a computer monitor. When a pixel belongs to an image used as a texture resource, it is called a 'texture pixel' or shortened to 'texel'. Instead of mapping directly to screen pixels, a texel's data is mapped to a location in the coordinate space of the 3D object being modeled. Textures can be used to convey color and other surface qualities such as depth and reflectivity. Multiple textures may be layered to create complex surface overlays. The process of mapping the appropriate texels to their corresponding points on a polygon is called texture mapping. Texture mapping is a stage of the process of rendering a 3D image for display. When the source texel grid and destination pixel grid do not align, further texture filtering is applied to smooth the resultant texture-mapped pixels (texture magnification or minification). The final output of the rendering process is a flattened 2D projection of the 3D model, where the texture has been 'wrapped' around the model. During the render pipeline, texture mapping is typically done prior to lighting the scene; however, in WebGL, lighting is performed as part of the texture mapping process.
In this article
See also
- Texel (graphics) on Wikipedia
- Texture mapping on Wikipedia
- Texture filtering on Wikipedia
- Using textures in WebGL
- Lighting in WebGL
- Animating textures in WebGL