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