Skip to content

Commit c95d5d8

Browse files
updated inline doc
1 parent b1baa59 commit c95d5d8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/webgl/material.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ p5.prototype.normalMaterial = function(...args) {
701701
};
702702

703703
/**
704-
* Sets the current material as an ambient material of the given color.
704+
* Sets the ambient color of the material.
705705
*
706706
* The ambientMaterial() color is the color the object will reflect
707707
* under **any** lighting.
@@ -811,8 +811,7 @@ p5.prototype.ambientMaterial = function(v1, v2, v3) {
811811
};
812812

813813
/**
814-
* Sets the current material as an emissive material of
815-
* the given color.
814+
* Sets the emissive color of the material.
816815
*
817816
* An emissive material will display the emissive color at
818817
* full strength regardless of lighting. This can give the
@@ -883,7 +882,7 @@ p5.prototype.emissiveMaterial = function(v1, v2, v3, a) {
883882
};
884883

885884
/**
886-
* Sets the current material as a specular material of the given color.
885+
* Sets the specular color of the material.
887886
*
888887
* A specular material is reflective (shiny). The shininess can be
889888
* controlled by the <a href="#/p5/shininess">shininess()</a> function.

0 commit comments

Comments
 (0)