Skip to content

Instantly share code, notes, and snippets.

@khlorghaal
Created May 29, 2021 03:29
Show Gist options
  • Save khlorghaal/f975f9c134fe430b0d33c83cfdb56b3d to your computer and use it in GitHub Desktop.
Save khlorghaal/f975f9c134fe430b0d33c83cfdb56b3d to your computer and use it in GitHub Desktop.
//choose a species by uncommenting
//#define Tessellatium_VT049W
//#define Tessellatium_Z18A9R
#define Ciliatium_G6G6CR
#define SPECIES_DEF(_m00, _m10, _m20, _m30, _m40, _m50, _m60, _m70, _m80, _m90, _mA0, _mB0, _mC0, _mD0, _mE0, _m01, _m11, _m21, _m31, _m41, _m51, _m61, _m71, _m81, _m91, _mA1, _mB1, _mC1, _mD1, _mE1, _m02, _m12, _m22, _m32, _m42, _m52, _m62, _m72, _m82, _m92, _mA2, _mB2, _mC2, _mD2, _mE2, _m03, _m13, _m23, _m33, _m43, _m53, _m63, _m73, _m83, _m93, _mA3, _mB3, _mC3, _mD3, _mE3, _m04, _m14, _m24, _m34, _m44, _m54, _m64, _m74, _m84, _m94, _mA4, _mB4, _mC4, _mD4, _mE4, _m05, _m15, _m25, _m35, _m45, _m55, _m65, _m75, _m85, _m95, _mA5, _mB5, _mC5, _mD5, _mE5, _m06, _m16, _m26, _m36, _m46, _m56, _m66, _m76, _m86, _m96, _mA6, _mB6, _mC6, _mD6, _mE6) \
const mat4 betaLen = mat4( _m00, _m10, _m20, _m30, _m40, _m50, _m60, _m70, _m80, _m90, _mA0, _mB0, _mC0, _mD0, _mE0, v0 );/* kernel rings number*/\
const mat4 beta0 = mat4( _m01, _m11, _m21, _m31, _m41, _m51, _m61, _m71, _m81, _m91, _mA1, _mB1, _mC1, _mD1, _mE1, v0 );/* kernel ring 0 height*/\
const mat4 beta1 = mat4( _m02, _m12, _m22, _m32, _m42, _m52, _m62, _m72, _m82, _m92, _mA2, _mB2, _mC2, _mD2, _mE2, v0 );/* kernel ring 1 height*/\
const mat4 mu = mat4( _m03, _m13, _m23, _m33, _m43, _m53, _m63, _m73, _m83, _m93, _mA3, _mB3, _mC3, _mD3, _mE3, v0 );/* growth center*/\
const mat4 sigma = mat4( _m04, _m14, _m24, _m34, _m44, _m54, _m64, _m74, _m84, _m94, _mA4, _mB4, _mC4, _mD4, _mE4, v1 );/* growth width*/\
const mat4 eta = mat4( _m05, _m15, _m25, _m35, _m45, _m55, _m65, _m75, _m85, _m95, _mA5, _mB5, _mC5, _mD5, _mE5, v0 );/* growth strength*/\
const mat4 relR = mat4( _m06, _m16, _m26, _m36, _m46, _m56, _m66, _m76, _m86, _m96, _mA6, _mB6, _mC6, _mD6, _mE6, v1 );/* relative kernel radius*/
SPECIES_DEF(
#ifdef Tessellatium_VT049W
1., 1., 2., 2., 1., 2., 1., 1., 1., 2., 2., 2., 1., 2., 1.,
1., 1., 1., 0., 1., 5./6., 1., 1., 1., 11./12., 3./4., 11./12., 1., 1./6., 1.,
0., 0., 1./4., 1., 0., 1., 0., 0., 0., 1., 1., 1., 0., 1., 0.,
0.272, 0.349, 0.2, 0.114, 0.447, 0.247, 0.21, 0.462, 0.446, 0.327, 0.476, 0.379, 0.262, 0.412, 0.201,
0.0595, 0.1585, 0.0332, 0.0528, 0.0777, 0.0342, 0.0617, 0.1192, 0.1793, 0.1408, 0.0995, 0.0697, 0.0877, 0.1101, 0.0786,
0.19, 0.66, 0.39, 0.38, 0.74, 0.92, 0.59, 0.37, 0.94, 0.51, 0.77, 0.92, 0.71, 0.59, 0.41,
0.91, 0.62, 0.5, 0.97, 0.72, 0.8, 0.96, 0.56, 0.78, 0.79, 0.5, 0.72, 0.68, 0.55, 0.82
#endif
#ifdef Tessellatium_Z18A9R
1., 1., 2., 2., 1., 2., 1., 1., 1., 2., 2., 2., 1., 2., 1.,
1., 1., 1., 0., 1., 3./4., 1., 1., 1., 11./12., 3./4., 1., 1., 1./4., 1.,
0., 0., 1./4., 1., 0., 1., 0., 0., 0., 1., 1., 11./12., 0., 1., 0.,
0.175, 0.382, 0.231, 0.123, 0.398, 0.224, 0.193, 0.512, 0.427, 0.286, 0.508, 0.372, 0.196, 0.371, 0.246,
0.0682, 0.1568, 0.034, 0.0484, 0.0816, 0.0376, 0.063, 0.1189, 0.1827, 0.1422, 0.1079, 0.0724, 0.0934, 0.1107, 0.0712,
0.138, 0.544, 0.326, 0.256, 0.544, 0.544, 0.442, 0.198, 0.58, 0.282, 0.396, 0.618, 0.382, 0.374, 0.376,
0.78, 0.56, 0.6, 0.84, 0.76, 0.82, 1.0, 0.68, 0.99, 0.72, 0.56, 0.65, 0.85, 0.54, 0.82
#endif
#ifdef Ciliatium_G6G6CR
1., 1., 1., 2., 1., 2., 1., 1., 1., 1., 1., 2., 1., 1., 2.,
1., 1., 1., 1./12., 1., 5./6., 1., 1., 1., 1., 1., 1.,1., 1., 1.,
0., 0., 0., 1., 0., 1., 0., 0., 0., 0., 0., 11./12., 1., 1., 0.,
0.118, 0.174, 0.244, 0.114, 0.374, 0.222, 0.306, 0.449, 0.498, 0.295, 0.43, 0.353, 0.238, 0.39, 0.1,
0.0639, 0.159, 0.0287, 0.0469, 0.0822, 0.0294, 0.0775, 0.124, 0.1836, 0.1373, 0.0999, 0.0754, 0.0995, 0.1144, 0.0601,
0.1, 0.56, 0.6, 0.47, 0.9, 1.0, 0.56, 0.53, 0.94, 0.65, 0.57, 0.64, 0.86, 0.52, 0.45,
0.85, 0.61, 0.5, 0.81, 0.85, 0.93, 0.88, 0.74, 0.97, 0.92, 0.56, 0.56, 0.95, 0.59, 0.58
#endif
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment