Same image formation as volume rendering, which is why the two
representations are interchangeable at the pixel.
Usage
morie_gsplat_composite(colours, alphas, depths = NULL)
Arguments
- colours
Matrix of per-Gaussian colours (n x 3 or n x d).
- alphas
Numeric vector of opacities in [0, 1].
- depths
Optional depth per Gaussian; sorts back-to-front.
Value
A list with colour, transmittance,
coverage and note.
References
Kerbl, B. et al. (2023); Mildenhall, B. et al. (2020).
Examples
cols <- rbind(c(1, 0, 0), c(0, 0, 1))
morie_gsplat_composite(cols, alphas = c(0.6, 0.5))$colour # red in front of blue
#> [1] 0.6 0.0 0.2