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>2013-06-10 17:06:10 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-10 17:06:10 +0400
commit183629b451902e32c4840864da55bc3c055fd393 (patch)
tree0cb646b3b62bbbbeefe6c2715d699ac6c41bd225 /intern/cycles/kernel/shaders/stdosl.h
parent88ab28dc5ff6f0f21e481b3063b33e5bd4109b1d (diff)
Fix cycles OSL backwards compatibility for specular_toon, it got renamed to glossy_toon
but we can keep the old name working too.
Diffstat (limited to 'intern/cycles/kernel/shaders/stdosl.h')
-rw-r--r--intern/cycles/kernel/shaders/stdosl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/intern/cycles/kernel/shaders/stdosl.h b/intern/cycles/kernel/shaders/stdosl.h
index e98d0c9a9ad..09217e52b55 100644
--- a/intern/cycles/kernel/shaders/stdosl.h
+++ b/intern/cycles/kernel/shaders/stdosl.h
@@ -465,6 +465,13 @@ closure color holdout() BUILTIN;
closure color ambient_occlusion() BUILTIN;
closure color bssrdf_cubic(normal N, vector radius) BUILTIN;
+// Backwards compatibility
+
+closure color specular_toon(normal N, float size, float smooth)
+{
+ return glossy_toon(N, size, smooth);
+}
+
// Renderer state
int raytype (string typename) BUILTIN;
// the individual 'isFOOray' functions are deprecated