Blender V2.61 - r43446
|
#include "BLI_voxel.h"
#include "BLI_utildefines.h"
Go to the source code of this file.
Functions | |
BM_INLINE float | D (float *data, const int res[3], int x, int y, int z) |
float | voxel_sample_nearest (float *data, const int res[3], const float co[3]) |
BM_INLINE int | FLOORI (float x) |
BM_INLINE int | _clamp (int a, int b, int c) |
float | voxel_sample_trilinear (float *data, const int res[3], const float co[3]) |
float | voxel_sample_triquadratic (float *data, const int res[3], const float co[3]) |
float | voxel_sample_tricubic (float *data, const int res[3], const float co[3], int bspline) |
Definition in file voxel.c.
BM_INLINE int _clamp | ( | int | a, |
int | b, | ||
int | c | ||
) |
Definition at line 68 of file voxel.c.
Referenced by voxel_sample_tricubic(), voxel_sample_trilinear(), and voxel_sample_triquadratic().
BM_INLINE float D | ( | float * | data, |
const int | res[3], | ||
int | x, | ||
int | y, | ||
int | z | ||
) |
Definition at line 38 of file voxel.c.
Referenced by bsdf_ashikhmin_velvet_eval_reflect(), bsdf_ashikhmin_velvet_sample(), bsdf_microfacet_beckmann_eval_reflect(), bsdf_microfacet_beckmann_eval_transmit(), bsdf_microfacet_beckmann_sample(), bsdf_microfacet_ggx_eval_reflect(), bsdf_microfacet_ggx_eval_transmit(), bsdf_microfacet_ggx_sample(), bvh_triangle_refine(), dblur(), MicrofacetBeckmannClosure< Refractive >::eval_reflect(), MicrofacetGGXClosure< Refractive >::eval_reflect(), AshikhminVelvetClosure::eval_reflect(), MicrofacetBeckmannClosure< Refractive >::eval_transmit(), MicrofacetGGXClosure< Refractive >::eval_transmit(), feline_eval(), FHT2D(), md5_process_block(), TNT::QR_factor(), TNT::R_solve(), regular_light_sample(), MicrofacetBeckmannClosure< Refractive >::sample(), MicrofacetGGXClosure< Refractive >::sample(), AshikhminVelvetClosure::sample(), QuadDice::scale_factor(), and voxel_sample_nearest().
BM_INLINE int FLOORI | ( | float | x | ) |
Definition at line 60 of file voxel.c.
Referenced by voxel_sample_tricubic(), voxel_sample_trilinear(), and voxel_sample_triquadratic().
float voxel_sample_nearest | ( | float * | data, |
const int | res[3], | ||
const float | co[3] | ||
) |
float voxel_sample_tricubic | ( | float * | data, |
const int | res[3], | ||
const float | co[3], | ||
int | bspline | ||
) |
Definition at line 135 of file voxel.c.
References _clamp(), FLOORI(), simple_enum_gen::w, and ShadeResult::z.
Referenced by voxeldatatex().
float voxel_sample_trilinear | ( | float * | data, |
const int | res[3], | ||
const float | co[3] | ||
) |
Definition at line 73 of file voxel.c.
References _clamp(), FLOORI(), simple_enum_gen::w, and ShadeResult::z.
Referenced by voxeldatatex().
float voxel_sample_triquadratic | ( | float * | data, |
const int | res[3], | ||
const float | co[3] | ||
) |
Definition at line 105 of file voxel.c.
References _clamp(), FLOORI(), simple_enum_gen::w, and ShadeResult::z.
Referenced by vol_get_precached_scattering(), and voxeldatatex().