UNPKG

playcanvas

Version:

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

3 lines (2 loc) 306 B
declare const _default: "\nuniform highp {sampler} {name};\n{returnType} load{funcName}() { return texelFetch({name}, splat.uv, 0); }\n{returnType} load{funcName}WithIndex(uint index) { return texelFetch({name}, ivec2(index % splatTextureSize, index / splatTextureSize), 0); }\n"; export default _default;