|
Blender
V2.93
|
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) |
Definition at line 2008 of file texture_image.c.
References copy_v4_v4(), afdata_t::dxt, afdata_t::dyt, ewa_eval(), afdata_t::extflag, afdata_t::intpol, result, TexResult::tr, and TXC_EXTD.
| 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 | ||
| ) |
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().
| 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 | ||
| ) |
Definition at line 1470 of file texture_procedural.c.
References multitex_nodes_intern(), NULL, blender::compositor::pool, and tex.
Referenced by BKE_texture_get_value_ex(), and dynamic_paint_set_init_color_tex_to_imseq_cb().
| 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().
| void RE_point_density_cache | ( | struct Depsgraph * | depsgraph, |
| struct PointDensity * | pd | ||
| ) |
Definition at line 831 of file texture_pointdensity.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), cache_pointdensity(), DEG_get_evaluated_scene(), depsgraph, sample_mutex, and scene.
| void RE_point_density_fix_linking | ( | void | ) |
Definition at line 982 of file texture_pointdensity.c.
Referenced by RE_InitState().
| 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().
| void RE_point_density_minmax | ( | struct Depsgraph * | depsgraph, |
| struct PointDensity * | pd, | ||
| float | r_min[3], | ||
| float | r_max[3] | ||
| ) |
Definition at line 841 of file texture_pointdensity.c.
References add_v3_v3(), BKE_object_boundbox_get(), BLI_assert, BLI_findlink(), BOUNDBOX_DIRTY, copy_v3_v3(), DEG_get_evaluated_scene(), depsgraph, BoundBox::flag, NULL, PointDensity::object, particle_system_minmax(), Object::particlesystem, PointDensity::psys, PointDensity::radius, scene, PointDensity::source, sub_v3_v3(), TEX_PD_PSYS, BoundBox::vec, and zero_v3().
Referenced by RE_point_density_sample().
| void RE_point_density_sample | ( | struct Depsgraph * | depsgraph, |
| struct PointDensity * | pd, | ||
| const int | resolution, | ||
| float * | values | ||
| ) |
Definition at line 937 of file texture_pointdensity.c.
References BLI_mutex_lock(), BLI_mutex_unlock(), BLI_parallel_range_settings_defaults(), BLI_task_parallel_range(), data, depsgraph, free_pointdensity(), max, min, NULL, PointDensity::object, point_density_sample_func(), RE_point_density_minmax(), sample_dummy_point_density(), sample_mutex, sub_v3_v3v3(), and TaskParallelSettings::use_threading.
| 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] | ||
| ) |
| 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().
| 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().
| bool void texture_rgb_blend | ( | float | in[3], |
| const float | tex[3], | ||
| const float | out[3], | ||
| float | fact, | ||
| float | facg, | ||
| int | blendtype | ||
| ) |
Definition at line 1497 of file texture_procedural.c.
References ATTR_FALLTHROUGH, copy_v3_v3(), fabsf, MA_RAMP_COLOR, MA_RAMP_HUE, MA_RAMP_LINEAR, MA_RAMP_SAT, MA_RAMP_SOFT, MA_RAMP_VAL, max_ff(), min_ff(), MTEX_ADD, MTEX_BLEND, MTEX_BLEND_COLOR, MTEX_BLEND_HUE, MTEX_BLEND_SAT, MTEX_BLEND_VAL, MTEX_DARK, MTEX_DIFF, MTEX_DIV, MTEX_LIGHT, MTEX_LIN_LIGHT, MTEX_MUL, MTEX_OVERLAY, MTEX_SCREEN, MTEX_SOFT_LIGHT, MTEX_SUB, ramp_blend(), and tex.
Definition at line 1636 of file texture_procedural.c.
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, SWAP, and tex.
Referenced by get_cpa_texture(), and psys_get_texture().