Skip to content

Commit

Permalink
HexTiling: Define symbol to fix Mesa Intel compile issue; fix PI (#2344)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Emminizer <daniel.emminizer@nrl.navy.mil>
  • Loading branch information
emminizer and Daniel Emminizer authored Oct 6, 2023
1 parent a1568db commit 8fbfda3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/osgEarth/HexTiling.glsl
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#pragma vp_name osgEarth Hex Tiling Library

#ifdef VP_STAGE_FRAGMENT

// Adapted and ported to GLSL from:
// https://github.com/mmikk/hextile-demo

float ht_g_fallOffContrast = 0.6;
float ht_g_exp = 7;

#ifdef VP_STAGE_FRAGMENT

#ifndef mul
#define mul(X, Y) ((X)*(Y))
#endif

#ifndef M_PI
#define M_PI 3.1417927
#define M_PI 3.1415927
#endif

#define HEX_SCALE 3.46410161
Expand Down

0 comments on commit 8fbfda3

Please sign in to comment.