Mention gcc bug in comments for gradient initialization
This commit is contained in:
parent
18d8ddfb34
commit
f5e9154492
1 changed files with 2 additions and 0 deletions
|
|
@ -241,6 +241,8 @@ struct cloud_app
|
||||||
|
|
||||||
pcg::fractal<pcg::perlin<float, 3>> perlin(std::move(grad), std::move(weights));
|
pcg::fractal<pcg::perlin<float, 3>> perlin(std::move(grad), std::move(weights));
|
||||||
|
|
||||||
|
// can't use template argument deduction for first argument due to gcc bug
|
||||||
|
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89062
|
||||||
geom::gradient<float> g(std::make_pair(0.2f, 0.f), geom::easing_type::cubic, std::pair{0.4f, max_density});
|
geom::gradient<float> g(std::make_pair(0.2f, 0.f), geom::easing_type::cubic, std::pair{0.4f, max_density});
|
||||||
|
|
||||||
util::array<std::uint8_t, 3> cloud_data({cloud_size[0], cloud_size[1], cloud_size[2]});
|
util::array<std::uint8_t, 3> cloud_data({cloud_size[0], cloud_size[1], cloud_size[2]});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue