diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-17 18:32:39 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-17 18:32:39 -0500 |
commit | 9f36c26a7f75a58564f60878c42381b451d7d7ba (patch) | |
tree | ec070dd2d2f7078bf3aebba4dade28d69043b375 /libdimension/dimension/texture.h | |
parent | 54e1ad43c7629d85f88cefbecdfe3e60e8c42294 (diff) | |
download | dimension-9f36c26a7f75a58564f60878c42381b451d7d7ba.tar.xz |
Make finish callback a propper BRDF.
Diffstat (limited to 'libdimension/dimension/texture.h')
-rw-r--r-- | libdimension/dimension/texture.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libdimension/dimension/texture.h b/libdimension/dimension/texture.h index 4d0e2d7..e5a1bfd 100644 --- a/libdimension/dimension/texture.h +++ b/libdimension/dimension/texture.h @@ -58,12 +58,15 @@ typedef struct dmnsn_finish dmnsn_finish; /* Finish callback */ typedef dmnsn_color dmnsn_finish_fn(const dmnsn_finish *finish, - dmnsn_color color, dmnsn_vector x0, - dmnsn_vector normal, - dmnsn_vector reflected); + dmnsn_color light, dmnsn_color color, + dmnsn_vector ray, dmnsn_vector normal, + dmnsn_vector viewer); /* dmnsn_finish definition */ struct dmnsn_finish { + /* Ambient contribution factor */ + double ambient; + /* Callbacks */ dmnsn_finish_fn *finish_fn; dmnsn_free_fn *free_fn; |