Fix cycles OSL backwards compatibility for specular_toon, it got renamed to glossy_toon
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 10 Jun 2013 13:06:10 +0000 (13:06 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 10 Jun 2013 13:06:10 +0000 (13:06 +0000)
but we can keep the old name working too.

intern/cycles/kernel/shaders/stdosl.h

index e98d0c9a9adef6d458c5461e7451708e923730e9..09217e52b556ae6ca7812ed7dedb89070604c771 100644 (file)
@@ -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