33 #include <OpenImageIO/fmath.h>
35 #include <OSL/genclosure.h>
57 PhongRampBsdf *bsdf = (PhongRampBsdf *)bsdf_alloc_osl(
58 sd,
sizeof(PhongRampBsdf), weight, &
params);
64 for (
int i = 0; i < 8; i++)
67 sd->flag |= bsdf_phong_ramp_setup(bsdf);
ccl_device ccl_addr_space void * closure_alloc_extra(ShaderData *sd, int size)
ClosureParam * closure_bsdf_phong_ramp_params()
void setup(ShaderData *sd, int, float3 weight)
#define CCL_NAMESPACE_END
CLOSURE_FLOAT_PARAM(OrenNayarClosure, params.roughness)
#define CLOSURE_FLOAT3_PARAM(st, fld)
#define CCLOSURE_PREPARE(name, classname)
void closure_bsdf_phong_ramp_prepare(OSL::RendererServices *, int id, void *data)