playcanvas
Version:
PlayCanvas WebGL game engine
3 lines (2 loc) • 713 B
TypeScript
declare const _default: "\nvar center: texture_2d<uff>;\nvar covA: texture_2d<uff>;\nvar covB: texture_2d<uff>;\nvar splatColor: texture_2d<uff>;\n\n// read the model-space center of the gaussian\nfn readCenter(source: ptr<function, SplatSource>) -> vec3f {\n return textureLoad(center, source.uv, 0).xyz;\n}\n\n// sample covariance vectors\nfn readCovariance(source: ptr<function, SplatSource>, cov_A: ptr<function, vec3f>, cov_B: ptr<function, vec3f>) {\n *cov_A = textureLoad(covA, source.uv, 0).xyz;\n *cov_B = textureLoad(covB, source.uv, 0).xyz;\n}\n\nfn readColor(source: ptr<function, SplatSource>) -> vec4f {\n return textureLoad(splatColor, source.uv, 0);\n} \n";
export default _default;