benc-uk / gsots3d

Library for building & rendering 3D stuff on the web
http://code.benco.io/gsots3d/
3 stars 0 forks source link

Refactor renderable & GL programs #37

Closed benc-uk closed 1 year ago

benc-uk commented 1 year ago

Currently GL programs are stored by the context, move this down a level (or two) to the instances or models This is how the skybox is handled, this will remove the really awkward if statement to get billboards to work

Billboards and "normal" models, each hold a reference to the program they need for rendering