Package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.texturedpolygon
package eu.svjatoslav.sixth.e3d.renderer.raster.shapes.basic.texturedpolygon
Textured triangle rendering with perspective-correct UV mapping.
Textured triangles apply 2D textures to 3D triangles using UV coordinates. Quake-style subdivided perspective correction (per-scanline recovery of exact u/v from linearly interpolated u/z, v/z, 1/z) keeps textures correct at any triangle size, so no tessellation is needed.
Key classes:
TexturedTriangle- The base textured triangle with perspective-correct scanline renderingPerspectiveBorderInterpolator- Edge interpolation of u/z, v/z, 1/z gradientsPolygonBorderInterpolator- Affine edge interpolation (fallback path)
- See Also:
-
ClassesClassDescriptionBorder interpolator carrying perspective-corrected texture gradients.Interpolator for textured polygon edges with perspective correction.A textured triangle renderer with perspective-correct texture mapping.