|
|
|
|
|
by Aardappel
296 days ago
|
|
the "gl" namespace is really a bit of misnomer since it is much higher level API than OpenGL, and does not really depend on OpenGL. It could pretty easily run on another API underneath. The repo comes with a LOT of graphical samples (in the "samples" dir). The lights are more of standard way of passing them to the shader (see the phong shader implementation). Matrices are a bit of a weak spot since its all implicit (which is convenient, but not powerful). There are also classes for direct use of matrices though. |
|
Not seeing a phong example in the samples dir. "pendulum.lobster", "physics_boxes.lobster" Only reference to "phong" brought back in a search was milen-prg's comment on Aug 7, 2023 about using the phong shader in the "cgtest.lobster" example.