Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-10-29 18:27:24 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-10-29 18:27:24 +0400
commit238f3a7d343875992f5b9c2ad657f2bc6f148938 (patch)
treeddc809124879b7eef15a708470f9de6bce43118a /intern/cycles/util/util_hash.h
parent996f2cd8b2362779e16fdfbd3913231c38e4a623 (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.h5
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__ */