diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-02-12 15:43:26 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-05-02 21:36:44 +0200 |
commit | 334e82a0a23db8a5c0816756021611bfffe2fa26 (patch) | |
tree | 9512429b38ef7a72c32f991f6e57a825accebcc4 /flam3.h | |
parent | ab08b66105e90ff75eeff2d807e4da4db51870a7 (diff) | |
download | pucket-334e82a0a23db8a5c0816756021611bfffe2fa26.tar.gz pucket-334e82a0a23db8a5c0816756021611bfffe2fa26.tar.bz2 pucket-334e82a0a23db8a5c0816756021611bfffe2fa26.zip |
Vectorize c and post matrices as well apply_xform
Diffstat (limited to 'flam3.h')
-rw-r--r-- | flam3.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -207,11 +207,12 @@ typedef struct { } flam3_image_store; +#include "vector.h" typedef struct xform { double var[flam3_nvariations]; /* interp coefs between variations */ - double c[3][2]; /* the coefs to the affine part of the function */ - double post[3][2]; /* the post transform */ + double2 c[3]; /* the coefs to the affine part of the function */ + double2 post[3]; /* the post transform */ double density; /* probability that this function is chosen. 0 - 1 */ double color; /* color coords for this function. 0 - 1 */ double color_speed; /* scaling factor on color added to current iteration */ @@ -420,8 +421,7 @@ typedef struct xform { double radialBlur_zoomvar; /* Precalculate these values for waves */ - double waves_dx2; - double waves_dy2; + double2 waves_d2; /* If disc2 is used, precalculate these values */ double disc2_sinadd; |