Пожалуйста, включите JavaScript.
Главная
Помощь
Вход
lolengine
/
lol
зеркало из
https://github.com/lolengine/lol
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
0
Релизы
0
Вики
Активность
Просмотр исходного кода
simplex_interpolator: scaling noise with an approximative factor 100 that seems to work well. No hint, so far on how to find an exact value for this scaling factor.
undefined
Guillaume Bittoun
Sam Hocevar
<sam@hocevar.net>
11 лет назад
Родитель
a815a788e6
Сommit
aa50d1c8e9
1 измененных файлов
:
3 добавлений
и
1 удалений
Единый вид
Опции Diff
Показать статистику
Скачать Patch файл
Скачать Diff файл
+3
-1
src/lol/math/simplex_interpolator.h
+ 3
- 1
src/lol/math/simplex_interpolator.h
Просмотреть файл
@@ -80,7 +80,9 @@ protected:
}
}
}
}
return result;
// Approximative scaling factor “100” seems to work well
// ie. gives a max value of 1 (a bit more in fact) for normed gradients
return result * 100;
}
}
inline vec_t<int, N> GetIndexOrder(vec_t<float, N> const & decimal_point) const
inline vec_t<int, N> GetIndexOrder(vec_t<float, N> const & decimal_point) const
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить