mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-06-29 06:15:29 +00:00
Render wireframe within paint nodes instead of drawing lines in a second pass. The wireframe is blended over the node in a single draw call. This slightly simplifies the logic by removing the computation of a second set of indices and enables wireframe anti-aliasing using Celes and Abraham's "Fast and versatile texture-based wireframe rendering" paper from 2011. Celes and Abraham use a one-dimensional set of texture coords for each triangle edge, 1.0 for the 2 vertices defining the edge and 0.0 for the other vertex, which basically define barycentric coords. Texture mapping and the mip chain is then exploited to give a constant-width edge. The main drawback of the technique is that contour edges of node's damage mesh are drawn half as thick as interior lines since each triangle draws half of each line's thickness. Signed-off-by: Loïc Molinari <loic.molinari@collabora.com> |
||
---|---|---|
.. | ||
cairo-util.c | ||
cairo-util.h | ||
config-parser.c | ||
fd-util.h | ||
file-util.c | ||
file-util.h | ||
frame.c | ||
hash.c | ||
hash.h | ||
helpers.h | ||
image-loader.c | ||
image-loader.h | ||
matrix.c | ||
meson.build | ||
option-parser.c | ||
os-compatibility.c | ||
os-compatibility.h | ||
platform.h | ||
process-util.c | ||
process-util.h | ||
string-helpers.h | ||
timespec-util.h | ||
weston-assert.h | ||
weston-drm-fourcc.h | ||
weston-egl-ext.h | ||
xalloc.h | ||
xcb-xwayland.c | ||
xcb-xwayland.h |