From ab2b632fb47768695b384b3c35539d207c5e8611 Mon Sep 17 00:00:00 2001 From: Daniel Hodgson Date: Sat, 31 Oct 2020 03:28:18 -0700 Subject: [PATCH] examples: Fix incorrect angles for "hexagonize" effect The value for "deg30" was incorrectly calculated as (pi / 15.0) instead of (tau / 12.0). --- data/examples/shaders/filter/hexagonize.effect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/examples/shaders/filter/hexagonize.effect b/data/examples/shaders/filter/hexagonize.effect index 04d9d1f3..fe0d6175 100644 --- a/data/examples/shaders/filter/hexagonize.effect +++ b/data/examples/shaders/filter/hexagonize.effect @@ -59,7 +59,7 @@ VertData VSDefault(VertData v_in) { #define PI 3.1415926f #define TAU 6.2831853f -#define deg30 0.20943951 +#define deg30 0.52359877 float hexDist(float2 a, float2 b){ float2 p = abs(b-a);