This is just a suggestion to check out https://github.com/google/filament for inspiration, since they provide a very in depth documentation https://google.github.io/filament/Filament.html (and their engine also runs on the browser).