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 | 1830x 1830x | import Frozen from "../../Core/Frozen.js";
import LightingModel from "./LightingModel.js";
/**
* Options for configuring the {@link LightingPipelineStage}
*
* @param {object} options An object containing the following options
* @param {LightingModel} [options.lightingModel=LightingModel.UNLIT] The lighting model to use
*
* @alias ModelLightingOptions
* @constructor
*
* @private
*/
function ModelLightingOptions(options) {
options = options ?? Frozen.EMPTY_OBJECT;
/**
* The lighting model to use, such as UNLIT or PBR. This is determined by
* the primitive's material.
*
* @type {LightingModel}
*
* @private
*/
this.lightingModel = options.lightingModel ?? LightingModel.UNLIT;
}
export default ModelLightingOptions;
|