Blender  V2.93
Classes | Typedefs | Functions
RE_texture.h File Reference

Go to the source code of this file.

Classes

struct  TexResult
 

Typedefs

typedef struct TexResult TexResult
 

Functions

bool RE_texture_evaluate (const struct MTex *mtex, const float vec[3], const int thread, struct ImagePool *pool, const bool skip_load_image, const bool texnode_preview, float *r_intensity, float r_rgba[4]) ATTR_NONNULL(1
 
bool void texture_rgb_blend (float in[3], const float tex[3], const float out[3], float fact, float facg, int blendtype)
 
float texture_value_blend (float tex, float out, float fact, float facg, int blendtype)
 
void RE_texture_rng_init (void)
 
void RE_texture_rng_exit (void)
 
void ibuf_sample (struct ImBuf *ibuf, float fx, float fy, float dx, float dy, float result[4])
 
void RE_point_density_cache (struct Depsgraph *depsgraph, struct PointDensity *pd)
 
void RE_point_density_minmax (struct Depsgraph *depsgraph, struct PointDensity *pd, float r_min[3], float r_max[3])
 
void RE_point_density_sample (struct Depsgraph *depsgraph, struct PointDensity *pd, const int resolution, float *values)
 
void RE_point_density_free (struct PointDensity *pd)
 
void RE_point_density_fix_linking (void)
 
int multitex_ext (struct Tex *tex, float texvec[3], float dxt[3], float dyt[3], int osatex, struct TexResult *texres, const short thread, struct ImagePool *pool, bool scene_color_manage, const bool skip_load_image)
 
int multitex_ext_safe (struct Tex *tex, const float texvec[3], struct TexResult *texres, struct ImagePool *pool, bool scene_color_manage, const bool skip_load_image)
 
int multitex_nodes (struct Tex *tex, const float texvec[3], float dxt[3], float dyt[3], int osatex, struct TexResult *texres, const short thread, short which_output, struct MTex *mtex, struct ImagePool *pool)
 

Typedef Documentation

◆ TexResult

typedef struct TexResult TexResult

Function Documentation

◆ ibuf_sample()

void ibuf_sample ( struct ImBuf ibuf,
float  fx,
float  fy,
float  dx,
float  dy,
float  result[4] 
)

◆ multitex_ext()

int multitex_ext ( Tex tex,
float  texvec[3],
float  dxt[3],
float  dyt[3],
int  osatex,
TexResult texres,
const short  thread,
struct ImagePool pool,
bool  scene_color_manage,
const bool  skip_load_image 
)
Warning
if the texres's values are not declared zero, check the return value to be sure the color values are set before using the r/g/b values, otherwise you may use uninitialized values - Campbell

Use it for stuff which is out of render pipeline.

Definition at line 1439 of file texture_procedural.c.

References multitex_nodes_intern(), NULL, blender::compositor::pool, and tex.

Referenced by do_texture_effector(), and blender::compositor::TextureBaseOperation::executePixelSampled().

◆ multitex_ext_safe()

int multitex_ext_safe ( struct Tex tex,
const float  texvec[3],
struct TexResult texres,
struct ImagePool pool,
bool  scene_color_manage,
const bool  skip_load_image 
)

◆ multitex_nodes()

int multitex_nodes ( struct Tex tex,
const float  texvec[3],
float  dxt[3],
float  dyt[3],
int  osatex,
struct TexResult texres,
const short  thread,
short  which_output,
struct MTex mtex,
struct ImagePool pool 
)

Definition at line 1405 of file texture_procedural.c.

References multitex_nodes_intern(), blender::compositor::pool, and tex.

Referenced by do_proc().

◆ RE_point_density_cache()

void RE_point_density_cache ( struct Depsgraph depsgraph,
struct PointDensity pd 
)

◆ RE_point_density_fix_linking()

void RE_point_density_fix_linking ( void  )

Definition at line 982 of file texture_pointdensity.c.

Referenced by RE_InitState().

◆ RE_point_density_free()

void RE_point_density_free ( struct PointDensity pd)

Definition at line 977 of file texture_pointdensity.c.

References free_pointdensity().

Referenced by node_shader_free_tex_pointdensity().

◆ RE_point_density_minmax()

void RE_point_density_minmax ( struct Depsgraph depsgraph,
struct PointDensity pd,
float  r_min[3],
float  r_max[3] 
)

◆ RE_point_density_sample()

void RE_point_density_sample ( struct Depsgraph depsgraph,
struct PointDensity pd,
const int  resolution,
float values 
)

◆ RE_texture_evaluate()

bool RE_texture_evaluate ( const struct MTex mtex,
const float  vec[3],
const int  thread,
struct ImagePool pool,
const bool  skip_load_image,
const bool  texnode_preview,
float r_intensity,
float  r_rgba[4] 
)

◆ RE_texture_rng_exit()

void RE_texture_rng_exit ( void  )

Definition at line 69 of file texture_procedural.c.

References BLI_rng_threaded_free(), NULL, and random_tex_array.

Referenced by BKE_blender_free().

◆ RE_texture_rng_init()

void RE_texture_rng_init ( void  )

Definition at line 64 of file texture_procedural.c.

References BLI_rng_threaded_new(), and random_tex_array.

Referenced by main().

◆ texture_rgb_blend()

bool void texture_rgb_blend ( float  in[3],
const float  tex[3],
const float  out[3],
float  fact,
float  facg,
int  blendtype 
)

◆ texture_value_blend()

float texture_value_blend ( float  tex,
float  out,
float  fact,
float  facg,
int  blendtype 
)