Skip to content

Instantly share code, notes, and snippets.

@grondilu
Created February 16, 2014 04:50
Show Gist options
  • Save grondilu/9029407 to your computer and use it in GitHub Desktop.
Save grondilu/9029407 to your computer and use it in GitHub Desktop.
midpoint random displacement should not alter the extremities of the edge
336,339c336,337
< if (!params->use_fractal) {
< alter_co(v1, &e_tmp, params, 0, &v1_tmp, &v2_tmp);
< alter_co(v2, &e_tmp, params, 1.0, &v1_tmp, &v2_tmp);
< }
---
> alter_co(v1, &e_tmp, params, 0, &v1_tmp, &v2_tmp);
> alter_co(v2, &e_tmp, params, 1.0, &v1_tmp, &v2_tmp);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment