Blender Git Commit Log
Git Commits -> Revision d5ed153
Revision d5ed153 by Thomas Dinges (master) October 30, 2014, 10:33 (GMT) |
Cycles / OSL: Support microfacet() closure color function from OSL 1.5 This is basically just a wrapper class, which maps the generic call from the OSL spec to our closures. Example usage: shader microfacet_osl( color Color = color(0.8), int Distribution = 0, normal Normal = N, vector Tangent = normalize(dPdu), float RoughnessU = 0.0, float RoughnessV = 0.0, float IOR = 1.4, int Refract = 0, output closure color BSDF = 0) { if (Distribution == 0) BSDF = Color * microfacet("ggx", Normal, Tangent, RoughnessU, RoughnessV, IOR, Refract); else BSDF = Color * microfacet("beckmann", Normal, Tangent, RoughnessU, RoughnessV, IOR, Refract); } |
Commit Details:
Full Hash: d5ed153760d32ca6c5f6ca5acc5ec6126a7f3eee
Parent Commit: 0414ed1
Lines Changed: +41, -0
1 Modified Path:
/intern/cycles/kernel/shaders/stdosl.h (+41, -0) (Diff)