UNPKG

playcanvas

Version:

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

12 lines (11 loc) 353 B
var gsplatStreamDecl_default = ( /* glsl */ ` 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 };