Blender V5.3
RE_texture.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2006 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
9
10#pragma once
11
12#include "BLI_compiler_attrs.hh"
13
14/* called by meshtools */
15
16namespace blender {
17
18struct Depsgraph;
19struct ImagePool;
20struct MTex;
21struct Tex;
22
23/* `texture_procedural.cc` */
24
30bool RE_texture_evaluate(const struct MTex *mtex,
31 const float vec[3],
32 int thread,
33 struct ImagePool *pool,
34 bool skip_load_image,
35 bool texnode_preview,
36 /* Return arguments. */
37 float *r_intensity,
38 float r_rgba[4]) ATTR_NONNULL(1, 2, 7, 8);
39
46float texture_value_blend(float tex, float out, float fact, float facg, int blendtype);
47
50
51/* `texture_procedural.cc` */
52
56struct TexResult {
57 float tin;
58 float trgba[4];
59 /* Is actually a boolean: When true -> use alpha, false -> set alpha to 1.0. */
60 int talpha;
61};
62
63/* This one uses nodes. */
64
72int multitex_ext(struct Tex *tex,
73 const float texvec[3],
74 struct TexResult *texres,
75 short thread,
76 struct ImagePool *pool,
77 bool scene_color_manage,
78 bool skip_load_image);
79
86int multitex_ext_safe(struct Tex *tex,
87 const float texvec[3],
88 struct TexResult *texres,
89 struct ImagePool *pool,
90 bool scene_color_manage,
91 bool skip_load_image);
92
99int multitex_nodes(struct Tex *tex,
100 const float texvec[3],
101 struct TexResult *texres,
102 short thread,
103 short which_output,
104 const struct MTex *mtex,
105 struct ImagePool *pool);
106
107} // namespace blender
BMesh Iterators.
float texture_value_blend(float tex, float out, float fact, float facg, int blendtype)
void RE_texture_rng_init()
int multitex_ext(Tex *tex, const float texvec[3], TexResult *texres, const short thread, ImagePool *pool, bool scene_color_manage, const bool skip_load_image)
void RE_texture_rng_exit()
bool RE_texture_evaluate(const MTex *mtex, const float vec[3], const int thread, ImagePool *pool, const bool skip_load_image, const bool texnode_preview, float *r_intensity, float r_rgba[4])
int multitex_nodes(Tex *tex, const float texvec[3], TexResult *texres, const short thread, short which_output, const MTex *mtex, ImagePool *pool)
int multitex_ext_safe(Tex *tex, const float texvec[3], TexResult *texres, ImagePool *pool, bool scene_color_manage, const bool skip_load_image)
void ATTR_NONNULL(1, 2)