GillesDebunne / libQGLViewer

libQGLViewer is an open source C++ library based on Qt that eases the creation of OpenGL 3D viewers.
Other
241 stars 94 forks source link

Can i use shader in libQGLViewer? #35

Closed stoneszone closed 7 years ago

stoneszone commented 7 years ago

Hello,

Can I use shader with libQGLViewer? I can not find any examples related to this. Thanks!

GillesDebunne commented 7 years ago

It is technically possible, but this library was made before shaders got popular and there is no example demonstrating their use.

One would need to switch to QOpenGLWidget and change the draw methods to use shaders, importing the camera parameters into them.