Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | 1825x 1825x 1825x 1825x 1825x 1825x 23725x 23725x 1825x 1825x | import Pass from "../Renderer/Pass.js";
/**
* Defines a list of commands whose geometry are bound by near and far distances from the camera.
* @alias FrustumCommands
* @constructor
*
* @param {number} [near=0.0] The lower bound or closest distance from the camera.
* @param {number} [far=0.0] The upper bound or farthest distance from the camera.
*
* @private
*/
function FrustumCommands(near, far) {
this.near = near ?? 0.0;
this.far = far ?? 0.0;
const numPasses = Pass.NUMBER_OF_PASSES;
const commands = new Array(numPasses);
const indices = new Array(numPasses);
for (let i = 0; i < numPasses; ++i) {
commands[i] = [];
indices[i] = 0;
}
this.commands = commands;
this.indices = indices;
}
export default FrustumCommands;
|