full support of ObjectBase:: isReceiveShadows, isCastShadows, isAcceptLight and isAcceptFog
This commit is contained in:
@@ -241,7 +241,12 @@ void Renderer::fillObjectsBuffer(const ObjectBaseList & ol, RenderPass pass) {
|
||||
so.material = 0;
|
||||
so.color = QColor2QVector(o->color());
|
||||
}
|
||||
so.object_id = o->id();
|
||||
so.object_id = o->id();
|
||||
so.flags = 0;
|
||||
so.f_accept_light = o->isAcceptLight();
|
||||
so.f_accept_fog = o->isAcceptFog();
|
||||
so.f_accept_cast_shadow = o->isCastShadows();
|
||||
so.f_accept_rec_shadow = o->isReceiveShadows();
|
||||
o->worldTransform().transposed().copyDataTo(so.modelmatrix);
|
||||
o->textureGLMatrix().copyDataTo(so.texturematrix);
|
||||
// qDebug() << "load obj" << o->name() << o->textureMatrix() << tmat;
|
||||
|
||||
@@ -110,7 +110,6 @@ public:
|
||||
|
||||
protected:
|
||||
void fillObjectsBuffer(const ObjectBaseList & ol, RenderPass pass);
|
||||
void reloadObjects();
|
||||
void renderObjects(Scene & scene, RenderPass pass);
|
||||
void renderLight(int first_wr_buff, bool clear_only);
|
||||
void renderShadow(int index, Light * light);
|
||||
|
||||
Reference in New Issue
Block a user