playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
32 lines (30 loc) • 488 B
JavaScript
var gsplatStructsVS = `
struct SplatSource {
uint order;
vec2 cornerUV;
};
struct SplatCenter {
vec3 view;
vec4 proj;
mat4 modelView;
float projMat00;
vec3 modelCenterOriginal;
vec3 modelCenterModified;
float fisheyeSinTK;
float fisheyeCosTK;
float fisheyeRxy;
};
struct SplatCorner {
vec3 offset;
vec2 uv;
float aaFactor;
vec2 v;
float dlen;
};
`;
export { gsplatStructsVS as default };