|
Blender V4.3
|
#include "BLI_compiler_attrs.h"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], int thread, struct ImagePool *pool, bool skip_load_image, bool texnode_preview, float *r_intensity, float r_rgba[4]) ATTR_NONNULL(1 |
| bool 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, 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, const float texvec[3], float dxt[3], float dyt[3], int osatex, struct TexResult *texres, short thread, struct ImagePool *pool, bool scene_color_manage, 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, 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, short thread, short which_output, const struct MTex *mtex, struct ImagePool *pool) |
This include is for non-render pipeline exports (still old cruft here).
Definition in file RE_texture.h.
| typedef struct TexResult TexResult |
Texture evaluation result.
Definition at line 1756 of file texture_image.cc.
References copy_v4_v4(), afdata_t::dxt, afdata_t::dyt, ewa_eval(), afdata_t::extflag, afdata_t::intpol, TexResult::trgba, and TXC_EXTD.
| int multitex_ext | ( | struct Tex * | tex, |
| const float | texvec[3], | ||
| float | dxt[3], | ||
| float | dyt[3], | ||
| int | osatex, | ||
| struct TexResult * | texres, | ||
| short | thread, | ||
| struct ImagePool * | pool, | ||
| bool | scene_color_manage, | ||
| bool | skip_load_image ) |
WARNING(@ideasman42): 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.
Use it for stuff which is out of render pipeline.
Definition at line 1160 of file texture_procedural.cc.
References multitex_nodes_intern(), and tex.
Referenced by do_texture_effector(), and blender::compositor::TextureBaseOperation::update_memory_buffer_partial().
| int multitex_ext_safe | ( | struct Tex * | tex, |
| const float | texvec[3], | ||
| struct TexResult * | texres, | ||
| struct ImagePool * | pool, | ||
| bool | scene_color_manage, | ||
| bool | skip_load_image ) |
Nodes disabled. extern-tex doesn't support nodes (#ntreeBeginExec() can't be called when rendering is going on).
Use it for stuff which is out of render pipeline.
Definition at line 1187 of file texture_procedural.cc.
References multitex_nodes_intern(), and tex.
Referenced by BKE_texture_get_value_ex(), dynamic_paint_set_init_color_tex_to_imseq_cb(), and dynamic_paint_set_init_color_tex_to_vcol_cb().
| int multitex_nodes | ( | struct Tex * | tex, |
| const float | texvec[3], | ||
| float | dxt[3], | ||
| float | dyt[3], | ||
| int | osatex, | ||
| struct TexResult * | texres, | ||
| short | thread, | ||
| short | which_output, | ||
| const struct MTex * | mtex, | ||
| struct ImagePool * | pool ) |
Only for internal node usage.
this is called from the shader and texture nodes Use it from render pipeline only!
| void RE_point_density_cache | ( | struct Depsgraph * | depsgraph, |
| struct PointDensity * | pd ) |
Definition at line 809 of file texture_pointdensity.cc.
References BLI_mutex_lock(), BLI_mutex_unlock(), cache_pointdensity(), DEG_get_evaluated_scene(), depsgraph, and sample_mutex.
| void RE_point_density_fix_linking | ( | void | ) |
Definition at line 955 of file texture_pointdensity.cc.
Referenced by RE_InitState().
| void RE_point_density_free | ( | struct PointDensity * | pd | ) |
Definition at line 950 of file texture_pointdensity.cc.
References free_pointdensity().
Referenced by blender::nodes::node_shader_tex_pointdensity_cc::node_shader_free_tex_pointdensity().
| void RE_point_density_minmax | ( | struct Depsgraph * | depsgraph, |
| struct PointDensity * | pd, | ||
| float | r_min[3], | ||
| float | r_max[3] ) |
Definition at line 819 of file texture_pointdensity.cc.
References add_v3_v3(), BKE_object_boundbox_get(), BLI_findlink(), copy_v3_v3(), DEG_get_evaluated_scene(), depsgraph, PointDensity::object, particle_system_minmax(), PointDensity::psys, PointDensity::radius, PointDensity::source, sub_v3_v3(), TEX_PD_PSYS, and zero_v3().
Referenced by RE_point_density_sample().
| void RE_point_density_sample | ( | struct Depsgraph * | depsgraph, |
| struct PointDensity * | pd, | ||
| int | resolution, | ||
| float * | values ) |
Definition at line 910 of file texture_pointdensity.cc.
References BLI_mutex_lock(), BLI_mutex_unlock(), BLI_parallel_range_settings_defaults(), BLI_task_parallel_range(), data, depsgraph, free_pointdensity(), min, PointDensity::object, SampleCallbackData::pd, point_density_sample_func(), RE_point_density_minmax(), sample_dummy_point_density(), sample_mutex, and sub_v3_v3v3().
| bool RE_texture_evaluate | ( | const struct MTex * | mtex, |
| const float | vec[3], | ||
| int | thread, | ||
| struct ImagePool * | pool, | ||
| bool | skip_load_image, | ||
| bool | texnode_preview, | ||
| float * | r_intensity, | ||
| float | r_rgba[4] ) |
| pool | Thread pool, may be NULL. |
| void RE_texture_rng_exit | ( | void | ) |
Definition at line 45 of file texture_procedural.cc.
References BLI_rng_threaded_free(), and random_tex_array.
Referenced by BKE_blender_free().
| void RE_texture_rng_init | ( | void | ) |
Definition at line 40 of file texture_procedural.cc.
References BLI_rng_threaded_new(), and random_tex_array.
Referenced by main().
| in | Destination |
| tex | Texture. |
| out | Previous color. |
| fact | Texture strength. |
| facg | Button strength value. |
Definition at line 1212 of file texture_procedural.cc.
References ATTR_FALLTHROUGH, col, fabsf, min_ff(), MTEX_ADD, MTEX_BLEND, MTEX_DARK, MTEX_DIFF, MTEX_DIV, MTEX_LIGHT, MTEX_LIN_LIGHT, MTEX_MUL, MTEX_OVERLAY, MTEX_SCREEN, MTEX_SOFT_LIGHT, MTEX_SUB, and tex.
Referenced by get_cpa_texture(), and psys_get_texture().