From c63da9254790593222edce8e89abd548f0720b4d Mon Sep 17 00:00:00 2001 From: Cem Karan Date: Fri, 18 Dec 2015 14:46:56 -0500 Subject: [PATCH] Changed the location of one vertex so the triangle is more triangular (maybe?) I haven't checked the math on this, but in playing with blending modes I noticed that one of the rotated vertices appeared to be closer to the center of rotation than the others. This adjustment makes it so they are all the same distance from the center of rotation. If the center of rotation is conincident with the triangle's center, then this will mean the triangle is equilateral, but I haven't verified this, it just looked right from the rotations. --- examples/filters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/filters.c b/examples/filters.c index 292454c02..b5801ebb4 100644 --- a/examples/filters.c +++ b/examples/filters.c @@ -54,7 +54,7 @@ static const struct { { -0.6f, -0.4f, 1.f, 0.f, 0.f }, { 0.6f, -0.4f, 0.f, 1.f, 0.f }, - { 0.f, 0.6f, 0.f, 0.f, 1.f } + { 0.f, 0.72f, 0.f, 0.f, 1.f } }; static const char* vertex_shader_text =