UNPKG

playcanvas

Version:

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

3 lines (2 loc) 491 B
declare const _default: "\n\n// Splat identification for texture sampling\nstruct Splat {\n uint index; // linear index into splat data\n ivec2 uv; // texture coordinate for sampling\n};\n\n// Global splat instance used by format read functions and load functions\nSplat splat;\n\n// Initialize splat from linear index\nvoid setSplat(uint idx) {\n splat.index = idx;\n splat.uv = ivec2(idx % splatTextureSize, idx / splatTextureSize);\n}\n\n"; export default _default;