playcanvas
Version:
PlayCanvas WebGL game engine
3 lines (2 loc) • 638 B
TypeScript
declare const _default: "\nuniform highp sampler2D center;\nuniform highp sampler2D covA;\nuniform highp sampler2D covB;\nuniform mediump sampler2D splatColor;\n\n// read the model-space center of the gaussian\nvec3 readCenter(SplatSource source) {\n return texelFetch(center, source.uv, 0).xyz;\n}\n\n// sample covariance vectors\nvoid readCovariance(in SplatSource source, out vec3 cov_A, out vec3 cov_B) {\n cov_A = texelFetch(covA, source.uv, 0).xyz;\n cov_B = texelFetch(covB, source.uv, 0).xyz;\n}\n\nvec4 readColor(in SplatSource source) {\n return texelFetch(splatColor, source.uv, 0);\n}\n";
export default _default;