@@ -149,9 +149,9 @@ var GLUtil={
149149 * resolves after the given list of promises finishes
150150 * its work.
151151 * @param {Array<Promise> } promises - an array containing promise objects
152- * @param {Function|undefined } progressResolve - a function called as each
152+ * @param {Function } [ progressResolve] - a function called as each
153153 * individual promise is resolved; optional
154- * @param {Function|undefined } progressReject - a function called as each
154+ * @param {Function } [ progressReject] - a function called as each
155155 * individual promise is rejected; optional
156156 * @return {Promise } A promise that is never rejected and resolves when
157157* all of the promises are each resolved or rejected. The result
@@ -774,7 +774,7 @@ var Texture=function(name){
774774* Loads a texture by its URL.
775775* @param {string } name URL of the texture data. It will be loaded via
776776* the JavaScript DOM's Image class
777- * @param {Object|undefined } textureCache An object whose keys
777+ * @param {Object } [ textureCache] An object whose keys
778778* are the names of textures already loaded. This will help avoid loading
779779* the same texture more than once. This parameter is optional
780780* and may be omitted.
@@ -1450,9 +1450,9 @@ Scene3D.prototype.loadAndMapTexture=function(name){
14501450* Loads one or more textures from an image URL and uploads each of them
14511451* to a texture buffer object.
14521452* @param {Array<string> } textureFiles A list of URLs of the image to load.
1453- * @param {Function|undefined } resolved Called for each URL that is loaded successfully
1453+ * @param {Function } [ resolved] Called for each URL that is loaded successfully
14541454* and uploaded to a texture buffer (the argument will be a Texture object.)
1455- * @param {Function|undefined } rejected Called for each URL for which an error
1455+ * @param {Function } [ rejected] Called for each URL for which an error
14561456* occurs (the argument will be the data passed upon
14571457* rejection).
14581458* @return {Promise } A promise that is resolved when
@@ -1516,14 +1516,15 @@ Scene3D.prototype.setViewMatrix=function(matrix){
15161516* (<code>center</code>).
15171517* @param {Array<number> } eye A 3-element vector specifying
15181518* the camera position in world space.
1519- * @param {Array<number>|undefined } center A 3-element vector specifying
1519+ * @param {Array<number> } [ center] A 3-element vector specifying
15201520* the point in world space that the camera is looking at. May be null or omitted,
15211521* in which case the default is the coordinates (0,0,0).
1522- * @param {Array<number>|undefined } up A 3-element vector specifying
1522+ * @param {Array<number> } [up] A 3-element vector specifying
15231523* the up-vector direction. May be null or omitted, in which case
15241524* the default is a vector pointing positive on the Y axis. This
15251525* vector must not point in the same or opposite direction as
1526- * the camera's view direction.
1526+ * the camera's view direction. (For best results, rotate the vector (0, 1, 0)
1527+ * so it points perpendicular to the camera's view direction.)
15271528* @return {glutil.Scene3D } This object.
15281529*/
15291530Scene3D . prototype . setLookAt = function ( eye , center , up ) {
0 commit comments