Blender V2.61 - r43446
Functions

svm_sky.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN __device float3 xyY_to_xyz (float x, float y, float Y)
__device float3 xyz_to_rgb (float x, float y, float z)
__device float sky_angle_between (float thetav, float phiv, float theta, float phi)
__device float sky_perez_function (__constant float *lam, float theta, float gamma)
__device float3 sky_radiance (KernelGlobals *kg, float3 dir)
__device void svm_node_tex_sky (KernelGlobals *kg, ShaderData *sd, float *stack, uint dir_offset, uint out_offset)

Function Documentation

__device float sky_angle_between ( float  thetav,
float  phiv,
float  theta,
float  phi 
)

Definition at line 46 of file svm_sky.h.

References cosf, safe_acosf(), and sinf.

Referenced by sky_radiance().

__device float sky_perez_function ( __constant float *  lam,
float  theta,
float  gamma 
)

Definition at line 52 of file svm_sky.h.

References cosf, and expf.

Referenced by sky_radiance(), and sky_texture_precompute().

__device float3 sky_radiance ( KernelGlobals *  kg,
float3  dir 
)
__device void svm_node_tex_sky ( KernelGlobals *  kg,
ShaderData sd,
float *  stack,
uint  dir_offset,
uint  out_offset 
)

Definition at line 83 of file svm_sky.h.

References sky_radiance(), stack_load_float3(), and stack_store_float3().

Referenced by svm_eval_nodes().

CCL_NAMESPACE_BEGIN __device float3 xyY_to_xyz ( float  x,
float  y,
float  Y 
)

Definition at line 21 of file svm_sky.h.

References make_float3(), and X.

Referenced by sky_radiance().

__device float3 xyz_to_rgb ( float  x,
float  y,
float  z 
)

Definition at line 34 of file svm_sky.h.

References make_float3().