From 30f279be26b70dc389f8300e8f5fb95d69c4b723 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sat, 10 Aug 2013 00:52:57 +0000 Subject: Code cleanup / Cycles: * Remove code for the unused Wave texture variations. We have quite some unused code in the texture area, I guess it doesn't harm to clean a bit up here. We can always get the code back from SVN if we need something. --- intern/cycles/kernel/shaders/node_texture.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'intern/cycles/kernel/shaders/node_texture.h') diff --git a/intern/cycles/kernel/shaders/node_texture.h b/intern/cycles/kernel/shaders/node_texture.h index 645be23c6a5..e7801c0aba2 100644 --- a/intern/cycles/kernel/shaders/node_texture.h +++ b/intern/cycles/kernel/shaders/node_texture.h @@ -198,31 +198,6 @@ float noise_basis_hard(point p, string basis, int hard) return (hard) ? fabs(2.0 * t - 1.0) : t; } -/* Waves */ - -float noise_wave(string wave, float a) -{ - if (wave == "Sine") { - return 0.5 + 0.5 * sin(a); - } - if (wave == "Saw") { - float b = 2 * M_PI; - int n = (int)(a / b); - a -= n * b; - if (a < 0) a += b; - - return a / b; - } - if (wave == "Tri") { - float b = 2 * M_PI; - float rmax = 1.0; - - return rmax - 2.0 * fabs(floor((a * (1.0 / b)) + 0.5) - (a * (1.0 / b))); - } - - return 0.0; -} - /* Turbulence */ float noise_turbulence(point p, string basis, float details, int hard) -- cgit v1.2.3