]> Dogcows Code - chaz/rasterize/blobdiff - raster.h
add scene lighting constructs; real stdin support
[chaz/rasterize] / raster.h
index ef358e71855b96d05eaef150f6a526e0d12dac12..1d43132c6ce7fe40a62b5c8566d589ba195656ea 100644 (file)
--- a/raster.h
+++ b/raster.h
@@ -69,11 +69,21 @@ void raster_projection(raster_t* p, const mat_t* transform);
  */
 void raster_eye(raster_t* p, vec_t eye);
 
+/*
+ * Set the ambient light for the scene.
+ */
+void raster_ambient(raster_t* p, color_t ambient);
+
 /*
  * Add a light to the scene.
  */
 void raster_light(raster_t* p, light_t light);
 
+/*
+ * Set the material properties for the scene.
+ */
+void raster_material(raster_t* p, color_t specular, scal_t shininess);
+
 
 /*
  * Save the raster to a PPM file.
This page took 0.020032 seconds and 4 git commands to generate.