three.js icon indicating copy to clipboard operation
three.js copied to clipboard

MeshBasicMaterial documentation innacuracy, suggestion

Open ijx33 opened this issue 12 years ago • 3 comments

In https://github.com/mrdoob/three.js/blob/dev/docs/api/materials/MeshBasicMaterial.html

"vertexColors" is confusingly (?me) marked as "boolean", but takes integer values.

Suggest adding

"Set to THREE.VertexColors to use vertex colors, and to THREE.FaceColors to use face colors"

I couldn't find this anywhere else in the docs.

ijx33 avatar Jan 05 '14 01:01 ijx33

Ah, yes. It's definitely not a Boolean. Do you think you could create a PR with this change?

mrdoob avatar Jan 07 '14 11:01 mrdoob

Actually. I'll fix it directly :)

mrdoob avatar Jan 07 '14 11:01 mrdoob

Fixed. Thanks! :)

mrdoob avatar Jan 07 '14 12:01 mrdoob