Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$shader$utils$getDefaultUniformValue.js
2026-07-01 22:38:29 -06:00

24 lines
940 B
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$shader$utils$getDefaultUniformValue = function(global, require, module, exports) {
exports.getDefaultUniformValue = function(type, size) {
switch(type) {
case "f32":
return 0;
case "vec2\x3cf32\x3e":
return new Float32Array(2 * size);
case "vec3\x3cf32\x3e":
return new Float32Array(3 * size);
case "vec4\x3cf32\x3e":
return new Float32Array(4 * size);
case "mat2x2\x3cf32\x3e":
return new Float32Array([1, 0, 0, 1]);
case "mat3x3\x3cf32\x3e":
return new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]);
case "mat4x4\x3cf32\x3e":
return new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]);
}
return null;
};
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$shader$utils$getDefaultUniformValue.js.map