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

Function convertToVec4

docs/app/js/sanddance-app.js:68745–68759  ·  view source on GitHub ↗
(variable, type)

Source from the content-addressed store, hash-verified

68743 }
68744}
68745function convertToVec4(variable, type) {
68746 switch(type){
68747 case "float":
68748 return "vec4(".concat(variable, ", 0.0, 0.0, 1.0)");
68749 case "vec2":
68750 return "vec4(".concat(variable, ", 0.0, 1.0)");
68751 case "vec3":
68752 return "vec4(".concat(variable, ", 1.0)");
68753 case "vec4":
68754 return variable;
68755 default:
68756 (0, _utils.assert)(false);
68757 return null;
68758 }
68759}
68760
68761},{"@babel/runtime/helpers/esm/slicedToArray":"cLnqM","../utils":"lnuIG","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"kr7fA":[function(require,module,exports) {
68762var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

getPassthroughFSFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected