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-11-07 01:05:58 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-11-07 01:05:58 +0400
commitfb56dbc2afc7c8b6ffc24406ed82cbcbff090da3 (patch)
tree5832366c7147ad6ebc858312ac106b5d1571b5e5 /intern/cycles/util/util_hash.h
parent3bf96250cde08ab9ad717819114b48ccb11c2d5d (diff)
Cycles: procedural texture nodes reorganization. This will break existing files
using them, but rather do it now that I have the chance still. Highlights: * Wood and Marble merged into a single Wave texture * Clouds + Distorted Noise merged into new Noise node * Blend renamed to Gradient * Stucci removed, was mostly useful for old bump * Noise removed, will come back later, didn't actually work yet * Depth setting is now Detail socket, which accepts float values * Scale socket instead of Size socket http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/Textures
Diffstat (limited to 'intern/cycles/util/util_hash.h')
-rw-r--r--intern/cycles/util/util_hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/util_hash.h b/intern/cycles/util/util_hash.h
index af7ad7e06a1..16901dab38e 100644
--- a/intern/cycles/util/util_hash.h
+++ b/intern/cycles/util/util_hash.h
@@ -21,7 +21,7 @@
CCL_NAMESPACE_BEGIN
-static unsigned int hash_int_2d(unsigned int kx, unsigned int ky)
+static inline unsigned int hash_int_2d(unsigned int kx, unsigned int ky)
{
#define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k))))
@@ -44,7 +44,7 @@ static unsigned int hash_int_2d(unsigned int kx, unsigned int ky)
#undef rot
}
-static unsigned int hash_int(unsigned int k)
+static inline unsigned int hash_int(unsigned int k)
{
return hash_int_2d(k, 0);
}