Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
begla committed Aug 1, 2024
2 parents 84b198d + f85a74c commit b00f501
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iolite_plugins/lua_plugin/init_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2407,14 +2407,14 @@ void script_init_state(sol::state& s)
// @category Noise Various procedural noise functions. Useful for, e.g., generating terrain, animations, etc.
// @copy_category Interface

// @function simplex
// @summary Calculates perlin noise.
// @function perlin
// @summary Calculates Perlin noise.
// @param x Vec4 The coordinate to calculate the noise value at.
// @return number value The noise value at the given coordinate.
s["Noise"]["perlin"] = [](const io_vec4_t& x) { return glm::perlin(io_cvt(x)); };

// @function simplex
// @summary Calculates simplex noise.
// @summary Calculates Simplex noise.
// @param x Vec4 The coordinate to calculate the noise value at.
// @return number value The noise value at the given coordinate.
s["Noise"]["simplex"] = [](const io_vec4_t& x) { return glm::simplex(io_cvt(x)); };
Expand Down

0 comments on commit b00f501

Please sign in to comment.