wggl
Version:
A friendly interface to shaders
20 lines (19 loc) • 653 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var primitives_1 = require("./primitives");
var UniformType;
(function (UniformType) {
UniformType["float"] = "float";
UniformType["int"] = "int";
})(UniformType = exports.UniformType || (exports.UniformType = {}));
var Uniform = /** @class */ (function () {
function Uniform(length, type) {
if (length === void 0) { length = 1; }
if (type === void 0) { type = UniformType.float; }
this.length = length;
this.type = type;
this.glType = primitives_1.GlType.uniform;
}
return Uniform;
}());
exports.Uniform = Uniform;