| 1203 | return 1; |
| 1204 | } |
| 1205 | static int eval_perlin_3(lua_State *L) |
| 1206 | { |
| 1207 | auto &gen = *(PerlinNoise3D<float>*)lua_touserdata(L, lua_upvalueindex(1)); |
| 1208 | lua_pushnumber(L, gen(luaL_checknumber(L, 1), luaL_checknumber(L, 2), luaL_checknumber(L, 3))); |
| 1209 | return 1; |
| 1210 | } |
| 1211 | |
| 1212 | static int dfhack_random_perlin(lua_State *L) |
| 1213 | { |
nothing calls this directly
no test coverage detected