@@ -301,6 +301,7 @@ function createMesh(device, positions, opts) {
301
301
* @param {number } [opts.ringRadius] - The radius from the centre of the torus to the centre of the tube (defaults to 0.3).
302
302
* @param {number } [opts.segments] - The number of radial divisions forming cross-sections of the torus ring (defaults to 20).
303
303
* @param {number } [opts.sides] - The number of divisions around the tubular body of the torus ring (defaults to 30).
304
+ * @param {boolean } [opts.calculateTangents] - Generate tangent information (defaults to false).
304
305
* @returns {Mesh } A new torus-shaped mesh.
305
306
*/
306
307
function createTorus ( device , opts ) {
@@ -600,6 +601,7 @@ function _createConeData(baseRadius, peakRadius, height, heightSegments, capSegm
600
601
* @param {number } [opts.height] - The length of the body of the cylinder (defaults to 1.0).
601
602
* @param {number } [opts.heightSegments] - The number of divisions along the length of the cylinder (defaults to 5).
602
603
* @param {number } [opts.capSegments] - The number of divisions around the tubular body of the cylinder (defaults to 20).
604
+ * @param {boolean } [opts.calculateTangents] - Generate tangent information (defaults to false).
603
605
* @returns {Mesh } A new cylinder-shaped mesh.
604
606
*/
605
607
function createCylinder ( device , opts ) {
@@ -645,6 +647,7 @@ function createCylinder(device, opts) {
645
647
* @param {number } [opts.height] - The length of the body of the capsule from tip to tip (defaults to 1.0).
646
648
* @param {number } [opts.heightSegments] - The number of divisions along the tubular length of the capsule (defaults to 1).
647
649
* @param {number } [opts.sides] - The number of divisions around the tubular body of the capsule (defaults to 20).
650
+ * @param {boolean } [opts.calculateTangents] - Generate tangent information (defaults to false).
648
651
* @returns {Mesh } A new cylinder-shaped mesh.
649
652
*/
650
653
function createCapsule ( device , opts ) {
@@ -684,6 +687,7 @@ function createCapsule(device, opts) {
684
687
* @param {number } [opts.height] - The length of the body of the cone (defaults to 1.0).
685
688
* @param {number } [opts.heightSegments] - The number of divisions along the length of the cone (defaults to 5).
686
689
* @param {number } [opts.capSegments] - The number of divisions around the tubular body of the cone (defaults to 18).
690
+ * @param {boolean } [opts.calculateTangents] - Generate tangent information (defaults to false).
687
691
* @returns {Mesh } A new cone-shaped mesh.
688
692
*/
689
693
function createCone ( device , opts ) {
@@ -718,8 +722,9 @@ function createCone(device, opts) {
718
722
* @param {GraphicsDevice } device - The graphics device used to manage the mesh.
719
723
* @param {object } [opts] - An object that specifies optional inputs for the function as follows:
720
724
* @param {number } [opts.radius] - The radius of the sphere (defaults to 0.5).
721
- * @param {number } [opts.segments] - The number of divisions along the longitudinal
722
- * and latitudinal axes of the sphere (defaults to 16).
725
+ * @param {number } [opts.latitudeBands] - The number of divisions along the latitudinal axis of the sphere (defaults to 16).
726
+ * @param {number } [opts.longitudeBands] - The number of divisions along the longitudinal axis of the sphere (defaults to 16).
727
+ * @param {boolean } [opts.calculateTangents] - Generate tangent information (defaults to false).
723
728
* @returns {Mesh } A new sphere-shaped mesh.
724
729
*/
725
730
function createSphere ( device , opts ) {
@@ -803,6 +808,7 @@ function createSphere(device, opts) {
803
808
* @param {Vec2 } [opts.halfExtents] - The half dimensions of the plane in the X and Z axes (defaults to [0.5, 0.5]).
804
809
* @param {number } [opts.widthSegments] - The number of divisions along the X axis of the plane (defaults to 5).
805
810
* @param {number } [opts.lengthSegments] - The number of divisions along the Z axis of the plane (defaults to 5).
811
+ * @param {boolean } [opts.calculateTangents] - Generate tangent information (defaults to false).
806
812
* @returns {Mesh } A new plane-shaped mesh.
807
813
*/
808
814
function createPlane ( device , opts ) {
@@ -883,6 +889,7 @@ function createPlane(device, opts) {
883
889
* @param {number } [opts.widthSegments] - The number of divisions along the X axis of the box (defaults to 1).
884
890
* @param {number } [opts.lengthSegments] - The number of divisions along the Z axis of the box (defaults to 1).
885
891
* @param {number } [opts.heightSegments] - The number of divisions along the Y axis of the box (defaults to 1).
892
+ * @param {boolean } [opts.calculateTangents] - Generate tangent information (defaults to false).
886
893
* @returns {Mesh } A new box-shaped mesh.
887
894
*/
888
895
function createBox ( device , opts ) {
0 commit comments