diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-29 18:27:24 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-10-29 18:27:24 +0400 |
commit | 238f3a7d343875992f5b9c2ad657f2bc6f148938 (patch) | |
tree | ddc809124879b7eef15a708470f9de6bce43118a /intern/cycles/util/util_hash.h | |
parent | 996f2cd8b2362779e16fdfbd3913231c38e4a623 (diff) |
Cycles: seed value to get different noise values from renders, there was a patch
for this but I've implemented it differently.
Diffstat (limited to 'intern/cycles/util/util_hash.h')
-rw-r--r-- | intern/cycles/util/util_hash.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/util_hash.h b/intern/cycles/util/util_hash.h index 0b7164403f2..af7ad7e06a1 100644 --- a/intern/cycles/util/util_hash.h +++ b/intern/cycles/util/util_hash.h @@ -44,6 +44,11 @@ static unsigned int hash_int_2d(unsigned int kx, unsigned int ky) #undef rot } +static unsigned int hash_int(unsigned int k) +{ + return hash_int_2d(k, 0); +} + CCL_NAMESPACE_END #endif /* __UTIL_HASH_H__ */ |