git-svn-id: svn://db.shs.com.ru/libs@667 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-12-10 12:20:58 +00:00
parent 94c6536477
commit 046bcf2bef
2 changed files with 56 additions and 26 deletions

View File

@@ -65,6 +65,10 @@ class Renderer: public RendererBase {
obrSum,
obrSolidOmni,
obrSolidSpot,
obrTransparentOmni,
obrTransparentSpot,
obrBuffersCount,
};
public:
@@ -85,6 +89,7 @@ protected:
void fillObjectsBuffer(const ObjectBaseList & ol, RenderPass pass);
void reloadObjects();
void renderObjects(Scene & scene, RenderPass pass);
void renderLight(int first_wr_buff);
bool bindShader(ShaderRole role, QOpenGLShaderProgram ** ret = 0);
bool bindShader(QOpenGLShaderProgram * sp);
@@ -118,6 +123,7 @@ private:
QMatrix3x3 nm;
QVector4D corner_dirs[4];
QVector<QVector3D> hcontent;
QMap<int, QList<Light*>> cur_lights;
};