Blender V4.3
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)
@ TEX_NO_CLAMP
float contrast
float bright

Definition at line 15 of file texture_common.h.

Referenced by blend(), clouds(), marble(), mg_distNoiseTex(), mg_HTerrainTex(), mg_mFractalOrfBmTex(), mg_ridgedOrHybridMFTex(), texnoise(), voronoiTex(), and wood().

◆ BRICONTRGB

#define BRICONTRGB

Definition at line 27 of file texture_common.h.

Referenced by clouds(), imagewrap(), imagewraposa(), imagewraposa_aniso(), magic(), and voronoiTex().

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()

◆ imagewraposa()