summaryrefslogtreecommitdiffstats
path: root/o3d/samples/primitives.html
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/samples/primitives.html')
-rw-r--r--o3d/samples/primitives.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/o3d/samples/primitives.html b/o3d/samples/primitives.html
index 89337a9..e61cdae 100644
--- a/o3d/samples/primitives.html
+++ b/o3d/samples/primitives.html
@@ -130,9 +130,10 @@ function initContext() {
/**
* Creates a material based on the given single color.
- * @param {Array} baseColor An array with 4 entries, the R,G,B, and A components
- * of a color.
- * @return {Material} A material whose overall pigment is baseColor.
+ * @param {!o3djs.math.Vector4} baseColor A 4-component vector with
+ * the R,G,B, and A components of a color.
+ * @return {!o3d.Material} A phong material whose overall pigment is
+ * baseColor.
*/
function createMaterial(baseColor) {
// Create a new, empty Material object.