yzt
2023-05-26 2f70f6727314edd84d8ec2bfe3ce832803f1ea77
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
import defaultValue from "../../Core/defaultValue.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
 */
export default function ModelLightingOptions(options) {
  options = defaultValue(options, defaultValue.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 = defaultValue(options.lightingModel, LightingModel.UNLIT);
}