Skip to content

Commit

Permalink
Update forEachTextureInMaterial.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Jul 30, 2021
1 parent 6c03453 commit 317d064
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/forEachTextureInMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module.exports = forEachTextureInMaterial;
* Mimics the behavior of functions in gltf-pipeline ForEach.
* @param {Object} material The glTF material.
* @param {forEachTextureInMaterial~handler} handler Function that is called for each texture in the material.
*
* @private
*/
function forEachTextureInMaterial(material, handler) {
Check.typeOf.object('material', material);
Expand Down Expand Up @@ -135,4 +137,6 @@ function forEachTextureInMaterial(material, handler) {
* @callback forEachTextureInMaterial~handler
* @param {Number} The texture index.
* @param {Object} The texture info object.
*
* @private
*/
2 changes: 2 additions & 0 deletions lib/getComponentReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,6 @@ function getComponentReader(componentType) {
* @param {Number} numberOfComponents The number of components to read.
* @param {Number} componentTypeByteLength The byte length of each component.
* @param {Number} result An array storing the components that are read.
*
* @private
*/

0 comments on commit 317d064

Please sign in to comment.