UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

3 lines (2 loc) 1.1 kB
declare const _default: "\n\n// stores the source UV and order of the splat\nstruct SplatSource {\n order: u32, // render order\n id: u32, // splat id\n uv: vec2<i32>, // splat uv\n cornerUV: vec2f, // 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 view: vec3f, // center in view space\n proj: vec4f, // center in clip space\n modelView: mat4x4f, // model-view matrix\n projMat00: f32, // element [0][0] of the projection matrix\n modelCenterOriginal: vec3f, // original model center before modification\n modelCenterModified: vec3f, // model center after modification\n}\n\n// stores the offset from center for the current gaussian\nstruct SplatCorner {\n offset: vec2f, // corner offset from center in clip space\n uv: vec2f, // corner uv\n #if GSPLAT_AA\n aaFactor: f32, // for scenes generated with antialiasing\n #endif\n}\n\n"; export default _default;