Este site funciona melhor com JavaScript.
Página inicial
Ajuda
Acessar
lolengine
/
lol
espelhamento de
https://github.com/lolengine/lol
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
0
Wiki
Atividade
Ver código fonte
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 anos atrás
pai
a815a788e6
commit
aa50d1c8e9
1 arquivos alterados
com
3 adições
e
1 exclusões
Visão unificada
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+3
-1
src/lol/math/simplex_interpolator.h
+ 3
- 1
src/lol/math/simplex_interpolator.h
Ver arquivo
@@ -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
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar