diff options
author | Stuart Broadfoot <gbroadfoot@hotmail.com> | 2013-09-16 03:58:00 +0400 |
---|---|---|
committer | Stuart Broadfoot <gbroadfoot@hotmail.com> | 2013-09-16 03:58:00 +0400 |
commit | 3306afac876b545d85b121ea1bc7539d5c759d94 (patch) | |
tree | 776bcec11cd821a8bd2f3c73e8f306b9a06c2838 /intern/cycles/kernel/shaders/stdosl.h | |
parent | 0e46f1b1f8ceda9b2705691fbc82ac254de78aee (diff) |
Cycles Hair: Two basic bair shaders added
A new hair bsdf node, with two closure options, is added. These closures allow the generation of the reflective and transmission components of hair. The node allows control of the highlight colour, roughness and angular shift.
Llimitations include:
-No glint or fresnel adjustments.
-The 'offset' is un-used when triangle primitives are used.
Diffstat (limited to 'intern/cycles/kernel/shaders/stdosl.h')
-rw-r--r-- | intern/cycles/kernel/shaders/stdosl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/kernel/shaders/stdosl.h b/intern/cycles/kernel/shaders/stdosl.h index 3ad2bbc0588..424ca335903 100644 --- a/intern/cycles/kernel/shaders/stdosl.h +++ b/intern/cycles/kernel/shaders/stdosl.h @@ -468,6 +468,9 @@ closure color ambient_occlusion() BUILTIN; closure color bssrdf_cubic(normal N, vector radius, float texture_blur, float sharpness) BUILTIN; closure color bssrdf_gaussian(normal N, vector radius, float texture_blur) BUILTIN; +closure color hair_reflection(normal N, float roughnessu, float roughnessv, vector T, float offset) BUILTIN; +closure color hair_transmission(normal N, float roughnessu, float roughnessv, vector T, float offset) BUILTIN; + // Backwards compatibility closure color bssrdf_cubic(normal N, vector radius) BUILTIN; closure color bssrdf_gaussian(normal N, vector radius) BUILTIN; |