blender/intern/cycles
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
..
app Ghost Context Refactor 2014-10-07 15:47:32 -05:00
blender Cycles: Add a soft min/max UI value for volume step size, usually a range from 0.01 to 1.0 is fine. 2014-10-29 12:16:38 +01:00
bvh Cycles: Rebuild BVH from scratch if loading cache failed 2014-09-01 18:05:10 +06:00
cmake Ghost Context Refactor 2014-10-07 15:47:32 -05:00
device Deduplicate some code by using a function pointer to the real kernel 2014-10-30 10:23:44 +01:00
doc Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
kernel Cycles / OSL: Support microfacet() closure color function from OSL 1.5 2014-10-30 11:33:27 +01:00
render Cleanup: warnings, typos 2014-10-29 14:15:21 +01:00
subd Code cleanup: Add -Werror=float-conversion to Cycles 2014-05-03 07:31:46 +10:00
util Fix T42021: OSL doesn't work when there are non-ascii chars in the path 2014-10-14 14:56:21 +02:00
CMakeLists.txt Futher tweaks to WITH_CPU_SSE option 2014-10-15 18:45:09 +06:00
SConscript Ghost Context Refactor 2014-10-07 15:47:32 -05:00