cesium
Version:
CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
28 lines (25 loc) • 779 B
JavaScript
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);
}