summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/texture.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-12-23 02:04:32 -0500
committerTavian Barnes <tavianator@gmail.com>2009-12-23 02:04:32 -0500
commita9ce26a1cd786690b4b8f4b54fc7077b3d3569e5 (patch)
tree1d6e3676224699d828180a15edbca8a3ed39d75a /libdimension/dimension/texture.h
parentff44d1b89812c1c7ef86c848937f17a59c64a66e (diff)
downloaddimension-a9ce26a1cd786690b4b8f4b54fc7077b3d3569e5.tar.xz
Separate finishes into single-purpose finishes.
Diffstat (limited to 'libdimension/dimension/texture.h')
-rw-r--r--libdimension/dimension/texture.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/dimension/texture.h b/libdimension/dimension/texture.h
index e5a1bfd..c5f4b3f 100644
--- a/libdimension/dimension/texture.h
+++ b/libdimension/dimension/texture.h
@@ -61,14 +61,14 @@ typedef dmnsn_color dmnsn_finish_fn(const dmnsn_finish *finish,
dmnsn_color light, dmnsn_color color,
dmnsn_vector ray, dmnsn_vector normal,
dmnsn_vector viewer);
+typedef dmnsn_color dmnsn_ambient_fn(const dmnsn_finish *finish,
+ dmnsn_color pigment);
/* dmnsn_finish definition */
struct dmnsn_finish {
- /* Ambient contribution factor */
- double ambient;
-
/* Callbacks */
dmnsn_finish_fn *finish_fn;
+ dmnsn_ambient_fn *ambient_fn;
dmnsn_free_fn *free_fn;
/* Generic pointer */