playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
3 lines (2 loc) • 586 B
TypeScript
declare const _default: "\n// Modify the final splat fragment color in the forward pass.\n// Parameters:\n// gaussianUV - position of the fragment within the gaussian footprint: (0,0) at the splat\n// center, length 1 at the edge where the splat is clipped\n// color - rgb: splat color, a: fragment alpha after gaussian falloff, before\n// premultiplication\nfn modifySplatColor(gaussianUV: vec2f, color: ptr<function, vec4f>) {\n // Example: *color = vec4f((*color).rgb * 0.5, (*color).a); // darken all splats\n}\n";
export default _default;