mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 21:21:21 +00:00
64bcdb713c
This introduces the rect object and adds a rect_distance() and rect_coverage() function. _distance() returns the signed distance tp the rectangle. _coverage() returns the coverage of a pixel centered at that position. Note that the pixel size is computed using dFdx/dFdy.
7 lines
70 B
GLSL
7 lines
70 B
GLSL
#ifndef _RECT_VERT_
|
|
#define _RECT_VERT_
|
|
|
|
#include "rect.glsl"
|
|
|
|
#endif
|