diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-12 03:35:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-12 03:35:31 +0300 |
commit | e00bb5a4b730475fba8e2d14c9f2645af9b88f51 (patch) | |
tree | 08b142ff00a34ce70cefce7c15eb0d9fdcecaafa /source/blender/render | |
parent | 9e1e9516a08d94059b113fb3ac0d37b5ec3eaca0 (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/texture_image.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/render/intern/texture_image.c b/source/blender/render/intern/texture_image.c index cd34226920d..f0663b07a3c 100644 --- a/source/blender/render/intern/texture_image.c +++ b/source/blender/render/intern/texture_image.c @@ -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; |