UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

3 lines (2 loc) 1.12 kB
declare const _default: "\n\n// stores the source UV and order of the splat\nstruct SplatSource {\n uint order; // render order\n uint id; // splat id\n ivec2 uv; // splat uv\n vec2 cornerUV; // corner coordinates for this vertex of the gaussian (-1, -1)..(1, 1)\n};\n\n// stores the camera and clip space position of the gaussian center\nstruct SplatCenter {\n vec3 view; // center in view space\n vec4 proj; // center in clip space\n mat4 modelView; // model-view matrix\n float projMat00; // element [0][0] of the projection matrix\n vec3 modelCenterOriginal; // original model center before modification\n vec3 modelCenterModified; // model center after modification\n};\n\n// stores the offset from center for the current gaussian\nstruct SplatCorner {\n vec2 offset; // corner offset from center in clip space\n vec2 uv; // corner uv\n #if GSPLAT_AA\n float aaFactor; // for scenes generated with antialiasing\n #endif\n\n vec2 v;\n float dlen;\n};\n\n"; export default _default;