Blender  V3.3
Macros | Functions
texture_common.h File Reference

Go to the source code of this file.

Macros

#define BRICONT
 
#define BRICONTRGB
 

Functions

int imagewraposa (struct Tex *tex, struct Image *ima, struct ImBuf *ibuf, const float texvec[3], const float dxt[2], const float dyt[2], struct TexResult *texres, struct ImagePool *pool, bool skip_load_image)
 
int imagewrap (struct Tex *tex, struct Image *ima, const float texvec[3], struct TexResult *texres, struct ImagePool *pool, bool skip_load_image)
 
void image_sample (struct Image *ima, float fx, float fy, float dx, float dy, float result[4], struct ImagePool *pool)
 

Macro Definition Documentation

◆ BRICONT

#define BRICONT
Value:
texres->tin = (texres->tin - 0.5f) * tex->contrast + tex->bright - 0.5f; \
if (!(tex->flag & TEX_NO_CLAMP)) { \
if (texres->tin < 0.0f) { \
texres->tin = 0.0f; \
} \
else if (texres->tin > 1.0f) { \
texres->tin = 1.0f; \
} \
} \
((void)0)
#define TEX_NO_CLAMP
SyclQueue void void size_t num_bytes void
float contrast
float bright
short flag

Definition at line 14 of file texture_common.h.

◆ BRICONTRGB

#define BRICONTRGB

Definition at line 26 of file texture_common.h.

Function Documentation

◆ image_sample()

void image_sample ( struct Image ima,
float  fx,
float  fy,
float  dx,
float  dy,
float  result[4],
struct ImagePool pool 
)

◆ imagewrap()

int imagewrap ( struct Tex tex,
struct Image ima,
const float  texvec[3],
struct TexResult texres,
struct ImagePool pool,
bool  skip_load_image 
)

◆ imagewraposa()

int imagewraposa ( struct Tex tex,
struct Image ima,
struct ImBuf ibuf,
const float  texvec[3],
const float  dxt[2],
const float  dyt[2],
struct TexResult texres,
struct ImagePool pool,
bool  skip_load_image 
)