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

Function convertColor

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

Source from the content-addressed store, hash-verified

76039};
76040var INITIAL_MODULE_OPTIONS = {};
76041function convertColor() {
76042 var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, _ref$color = _ref.color, color = _ref$color === void 0 ? [
76043 0,
76044 0,
76045 0
76046 ] : _ref$color, _ref$intensity = _ref.intensity, intensity = _ref$intensity === void 0 ? 1.0 : _ref$intensity;
76047 return color.map(function(component) {
76048 return component * intensity / 255.0;
76049 });
76050}
76051function getLightSourceUniforms(_ref2) {
76052 var ambientLight = _ref2.ambientLight, _ref2$pointLights = _ref2.pointLights, pointLights = _ref2$pointLights === void 0 ? [] : _ref2$pointLights, _ref2$directionalLigh = _ref2.directionalLights, directionalLights = _ref2$directionalLigh === void 0 ? [] : _ref2$directionalLigh;
76053 var lightSourceUniforms = {};

Callers 1

getLightSourceUniformsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected