Go to file
Thomas Dinges d5ed153760 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);
}
2014-10-30 11:33:27 +01:00
build_files Scons/funstuff: notify when the binaries are compiled 2014-10-23 19:19:02 +02:00
doc Fix T42372: demo addon in doc was not handling keymaps correctly during (un)registration. 2014-10-26 10:01:03 +01:00
extern OSX/CLEW: silence hundreds of warnings: 'weak_import' attribute only applies to variables and functions 2014-10-24 14:25:02 +02:00
intern Cycles / OSL: Support microfacet() closure color function from OSL 1.5 2014-10-30 11:33:27 +01:00
release Fix T42394: Copy Rigid Body Tools would not work as expected if dest ob had no rigidbody yet. 2014-10-29 13:11:10 +01:00
scons@625d446ae8 Fixed border extension for the sunbeams node. 2014-09-23 11:42:11 +02:00
source Fix for mat3_to_rot_size modifying input matrix 2014-10-30 10:37:55 +01:00
tests GTest: polyfill2d 2014-09-28 21:43:15 +10:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Revert "ignore conflict files" 2014-08-08 06:00:49 +10:00
.gitmodules Initialize git submodules for addons, locales and scons 2013-11-15 12:19:08 +06:00
CMakeLists.txt Don't change global compiler flags when FFmpeg is enabled 2014-10-21 03:22:05 +06:00
COPYING == docs == 2010-10-13 14:44:22 +00:00
GNUmakefile Utility script to create release archive 2014-09-16 11:44:00 +10:00
SConstruct Ghost Context Refactor 2014-10-07 15:47:32 -05:00