Blender V5.0
texture_common.h File Reference
#include "BLI_math_color.h"

Go to the source code of this file.

Macros

#define BRICONT
#define BRICONTRGB

Functions

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

Definition at line 13 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 25 of file texture_common.h.

Referenced by clouds(), imagewrap(), 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()