playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
10 lines (8 loc) • 398 B
JavaScript
// Read functions for GSplatContainer float format (RGBA16F/RGBA32F textures)
var gsplatContainerFloatReadVS = /* wgsl */ `
fn getCenter() -> vec3f { return loadDataCenter().xyz; }
fn getColor() -> vec4f { return loadDataColor(); }
fn getScale() -> vec3f { return loadDataScale().xyz; }
fn getRotation() -> vec4f { return loadDataRotation(); }
`;
export { gsplatContainerFloatReadVS as default };