Blender V2.61 - r43446
Functions

svm_bsdf.h File Reference

#include "bsdf_ashikhmin_velvet.h"
#include "bsdf_diffuse.h"
#include "bsdf_oren_nayar.h"
#include "bsdf_microfacet.h"
#include "bsdf_reflection.h"
#include "bsdf_refraction.h"
#include "bsdf_transparent.h"
#include "bsdf_ward.h"
#include "bsdf_westin.h"

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN __device int svm_bsdf_sample (const ShaderData *sd, const ShaderClosure *sc, float randu, float randv, float3 *eval, float3 *omega_in, differential3 *domega_in, float *pdf)
__device float3 svm_bsdf_eval (const ShaderData *sd, const ShaderClosure *sc, const float3 omega_in, float *pdf)
__device void svm_bsdf_blur (ShaderClosure *sc, float roughness)

Function Documentation

__device void svm_bsdf_blur ( ShaderClosure sc,
float  roughness 
)
__device float3 svm_bsdf_eval ( const ShaderData sd,
const ShaderClosure sc,
const float3  omega_in,
float *  pdf 
)
CCL_NAMESPACE_BEGIN __device int svm_bsdf_sample ( const ShaderData sd,
const ShaderClosure sc,
float  randu,
float  randv,
float3 eval,
float3 omega_in,
differential3 domega_in,
float *  pdf 
)