MCPcopy Create free account
hub / github.com/microsoft/SandDance / AmbientLight

Function AmbientLight

docs/app/js/sanddance-app.js:81088–81097  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81086var DEFAULT_LIGHT_INTENSITY = 1.0;
81087var idCount = 0;
81088var AmbientLight = function AmbientLight1() {
81089 var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
81090 (0, _classCallCheckDefault.default)(this, AmbientLight1);
81091 var _props$color = props.color, color = _props$color === void 0 ? DEFAULT_LIGHT_COLOR : _props$color;
81092 var _props$intensity = props.intensity, intensity = _props$intensity === void 0 ? DEFAULT_LIGHT_INTENSITY : _props$intensity;
81093 this.id = props.id || "ambient-".concat(idCount++);
81094 this.color = color;
81095 this.intensity = intensity;
81096 this.type = "ambient";
81097};
81098
81099},{"@babel/runtime/helpers/esm/classCallCheck":"3owyr","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"9vhZm":[function(require,module,exports) {
81100var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected