Blender V2.61 - r43446
Functions

kernel_triangle.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN
__device_inline float3 
triangle_point_MT (KernelGlobals *kg, int tri_index, float u, float v)
__device_inline float3 triangle_sample_MT (KernelGlobals *kg, int tri_index, float randu, float randv)
__device_inline float3 triangle_normal_MT (KernelGlobals *kg, int tri_index, int *shader)
__device_inline float3 triangle_smooth_normal (KernelGlobals *kg, int tri_index, float u, float v)
__device_inline void triangle_dPdudv (KernelGlobals *kg, float3 *dPdu, float3 *dPdv, int tri)
__device float triangle_attribute_float (KernelGlobals *kg, const ShaderData *sd, AttributeElement elem, int offset, float *dx, float *dy)
__device float3 triangle_attribute_float3 (KernelGlobals *kg, const ShaderData *sd, AttributeElement elem, int offset, float3 *dx, float3 *dy)

Function Documentation

__device float triangle_attribute_float ( KernelGlobals *  kg,
const ShaderData sd,
AttributeElement  elem,
int  offset,
float *  dx,
float *  dy 
)
__device float3 triangle_attribute_float3 ( KernelGlobals *  kg,
const ShaderData sd,
AttributeElement  elem,
int  offset,
float3 dx,
float3 dy 
)
__device_inline void triangle_dPdudv ( KernelGlobals *  kg,
float3 dPdu,
float3 dPdv,
int  tri 
)
__device_inline float3 triangle_normal_MT ( KernelGlobals *  kg,
int  tri_index,
int *  shader 
)
CCL_NAMESPACE_BEGIN __device_inline float3 triangle_point_MT ( KernelGlobals *  kg,
int  tri_index,
float  u,
float  v 
)
__device_inline float3 triangle_sample_MT ( KernelGlobals *  kg,
int  tri_index,
float  randu,
float  randv 
)

Definition at line 37 of file kernel_triangle.h.

References sqrtf, and triangle_point_MT().

Referenced by triangle_light_sample().

__device_inline float3 triangle_smooth_normal ( KernelGlobals *  kg,
int  tri_index,
float  u,
float  v 
)