Changeset View
Changeset View
Standalone View
Standalone View
source/blender/render/RE_texture.h
| Show All 25 Lines | |||||
| * \param pool: Thread pool, may be NULL. | * \param pool: Thread pool, may be NULL. | ||||
| * | * | ||||
| * \return True if the texture has color, otherwise false. | * \return True if the texture has color, otherwise false. | ||||
| */ | */ | ||||
| bool RE_texture_evaluate(const struct MTex *mtex, | bool RE_texture_evaluate(const struct MTex *mtex, | ||||
| const float vec[3], | const float vec[3], | ||||
| int thread, | int thread, | ||||
| struct ImagePool *pool, | struct ImagePool *pool, | ||||
| bool skip_load_image, | |||||
| bool texnode_preview, | |||||
| /* Return arguments. */ | /* Return arguments. */ | ||||
| float *r_intensity, | float *r_intensity, | ||||
| float r_rgba[4]) ATTR_NONNULL(1, 2, 7, 8); | float r_rgba[4]) ATTR_NONNULL(1, 2, 5, 6); | ||||
| /** | /** | ||||
| * \param in: Destination | * \param in: Destination | ||||
| * \param tex: Texture. | * \param tex: Texture. | ||||
| * \param out: Previous color. | * \param out: Previous color. | ||||
| * \param fact: Texture strength. | * \param fact: Texture strength. | ||||
| * \param facg: Button strength value. | * \param facg: Button strength value. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | int multitex_nodes(struct Tex *tex, | ||||
| float dyt[3], | float dyt[3], | ||||
| int osatex, | int osatex, | ||||
| struct TexResult *texres, | struct TexResult *texres, | ||||
| short thread, | short thread, | ||||
| short which_output, | short which_output, | ||||
| struct MTex *mtex, | struct MTex *mtex, | ||||
| struct ImagePool *pool); | struct ImagePool *pool); | ||||
| /** | |||||
| * Apply transform from MTex to texture coordinates. | |||||
| */ | |||||
| void RE_texture_mapping_transform(const MTex *mtex, const float in_co[3], float out_co[3]); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||