playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
9 lines (8 loc) • 333 B
JavaScript
var gsplatStreamDecl_default = `
uniform highp {sampler} {name};
{returnType} load{funcName}() { return texelFetch({name}, splat.uv, 0); }
{returnType} load{funcName}WithIndex(uint index) { return texelFetch({name}, ivec2(index % splatTextureSize, index / splatTextureSize), 0); }
`;
export {
gsplatStreamDecl_default as default
};