diff options
Diffstat (limited to 'libdimension/canvas_pigment.c')
-rw-r--r-- | libdimension/canvas_pigment.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/canvas_pigment.c b/libdimension/canvas_pigment.c index b4c6823..ad68fe1 100644 --- a/libdimension/canvas_pigment.c +++ b/libdimension/canvas_pigment.c @@ -40,6 +40,8 @@ dmnsn_new_canvas_pigment(dmnsn_canvas *canvas) static dmnsn_color dmnsn_canvas_pigment_fn(const dmnsn_pigment *pigment, dmnsn_vector v) { + v = dmnsn_matrix_vector_mul(pigment->trans_inv, v); + dmnsn_canvas *canvas = pigment->ptr; int x = v.x*(canvas->x - 1) + 0.5; |