+
+ color_t txcolor(vec_t point) const
+ {
+#if TEXTURING
+ if (tx != NULL) {
+ vec_t uv = txcoord(point);
+#if QUIRKS
+ return raster_uv(tx, uv);
+#else
+ return color_mult(color(point), raster_uv(tx, uv));
+#endif
+ }
+#endif
+ return color(point);
+ }
+
+ void material(color_t color)
+ {
+ kd = color;
+ }
+
+ void texture(raster_t* texture)
+ {
+ tx = texture;
+ }