Blender V5.3
texture_common.h File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define BRICONT
#define BRICONTRGB

Functions

int blender::imagewrap (struct Tex *tex, struct Image *ima, const float texvec[3], struct TexResult *texres, struct ImagePool *pool, bool skip_load_image)
void blender::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)

Definition at line 15 of file texture_common.h.

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

◆ BRICONTRGB

#define BRICONTRGB