29static void texture_evaluate(
Tex *tex,
const float value[3],
float r_color[4])
34 multitex_ext(tex, value, &texres, 0,
nullptr,
true,
false);
37 r_color[3] = texres.tin;
53 func,
"Evaluate the texture at the given coordinate and returns the result");
62 "The coordinates (x,y,z) of the texture, in case of a 3D texture, the z value is the slice "
63 "of the texture that is evaluated. For 2D textures such as images, the z value is ignored.",
77 "The result of the texture where (x,y,z,w) are (red, green, blue, intensity). "
78 "For grayscale textures, often intensity only will be used.",
void RNA_def_function_output(FunctionRNA *, PropertyRNA *ret)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void RNA_api_texture(StructRNA *srna)
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 RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)