UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

13 lines (12 loc) 466 B
var containerPackedWrite_default = ` fn writeSplat(center: vec3f, rotation: vec4f, scale: vec3f, color: vec4f) { writeDataColor(color); #ifndef GSPLAT_COLOR_ONLY writeDataTransformA(vec4u(bitcast<u32>(center.x), bitcast<u32>(center.y), bitcast<u32>(center.z), pack2x16float(rotation.xy))); writeDataTransformB(vec4u(pack2x16float(vec2f(rotation.z, scale.x)), pack2x16float(scale.yz), 0u, 0u)); #endif } `; export { containerPackedWrite_default as default };