Cleanup: spelling

This commit is contained in:
2020-11-12 11:35:31 +11:00
parent 9e1e9516a0
commit e00bb5a4b7
7 changed files with 29 additions and 28 deletions

View File

@@ -742,8 +742,10 @@ typedef struct afdata_t {
/* this only used here to make it easier to pass extend flags as single int */
enum { TXC_XMIR = 1, TXC_YMIR, TXC_REPT, TXC_EXTD };
/* similar to ibuf_get_color() but clips/wraps coords according to repeat/extend flags
* returns true if out of range in clipmode */
/**
* Similar to `ibuf_get_color()` but clips/wraps coords according to repeat/extend flags
* returns true if out of range in clip-mode.
*/
static int ibuf_get_color_clip(float col[4], ImBuf *ibuf, int x, int y, int extflag)
{
int clip = 0;
@@ -1114,7 +1116,7 @@ static int imagewraposa_aniso(Tex *tex,
float t;
SWAP(float, minx, miny);
/* must rotate dxt/dyt 90 deg
* yet another blender problem is that swapping X/Y axes (or any tex proj switches)
* yet another blender problem is that swapping X/Y axes (or any tex projection switches)
* should do something similar, but it doesn't, it only swaps coords,
* so filter area will be incorrect in those cases. */
t = dxt[0];
@@ -1257,9 +1259,9 @@ static int imagewraposa_aniso(Tex *tex,
int maxlev;
ImBuf *mipmaps[IMB_MIPMAP_LEVELS + 1];
/* modify ellipse minor axis if too eccentric, use for area sampling as well
* scaling dxt/dyt as done in pbrt is not the same
* (as in ewa_eval(), scale by sqrt(ibuf->x) to maximize precision) */
/* Modify ellipse minor axis if too eccentric, use for area sampling as well
* scaling `dxt/dyt` as done in PBRT is not the same
* (as in `ewa_eval()`, scale by `sqrt(ibuf->x)` to maximize precision). */
const float ff = sqrtf(ibuf->x), q = ibuf->y / ff;
const float Ux = dxt[0] * ff, Vx = dxt[1] * q, Uy = dyt[0] * ff, Vy = dyt[1] * q;
const float A = Vx * Vx + Vy * Vy;