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>2012-12-11 18:39:41 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-12-11 18:39:41 +0400
commit8d4bd2cf3b08456dfdec39b9c88f744ce8f12c72 (patch)
tree70066f60839fd8dc1cb66aceeb5f12df086feb34 /intern/cycles/kernel/shaders/stdosl.h
parent43c04eefe32773b708d85ea0db95564e71f4870e (diff)
Cycles OSL: add diffuse_ramp closure in addition to phong_ramp.
Diffstat (limited to 'intern/cycles/kernel/shaders/stdosl.h')
-rw-r--r--intern/cycles/kernel/shaders/stdosl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/shaders/stdosl.h b/intern/cycles/kernel/shaders/stdosl.h
index 24c3a50e6f6..f4c0d0734bc 100644
--- a/intern/cycles/kernel/shaders/stdosl.h
+++ b/intern/cycles/kernel/shaders/stdosl.h
@@ -434,6 +434,7 @@ string concat (string a, string b, string c, string d, string e, string f) {
closure color diffuse(normal N) BUILTIN;
closure color oren_nayar(normal N, float sigma) BUILTIN;
closure color phong_ramp(normal N, float exponent, color colors[8]) BUILTIN;
+closure color diffuse_ramp(normal N, color colors[8]) BUILTIN;
closure color translucent(normal N) BUILTIN;
closure color reflection(normal N) BUILTIN;
closure color refraction(normal N, float eta) BUILTIN;