examples: Fix incorrect angles for "hexagonize" effect

The value for "deg30" was incorrectly calculated as (pi / 15.0) instead of (tau / 12.0).
This commit is contained in:
Daniel Hodgson 2020-10-31 03:28:18 -07:00 committed by Michael Fabian 'Xaymar' Dirks
parent 2e8bc6210e
commit ab2b632fb4

View file

@ -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);