implemented shadows for non positional lights

fixed skybox
implemented translation and rotation
This commit is contained in:
devZoGok
2021-10-18 19:05:52 +03:00
parent 7a8a178a74
commit 9479e3324f
52 changed files with 389 additions and 208 deletions
Regular → Executable
+7
View File
@@ -80,4 +80,11 @@ namespace vb01{
mesh->setMaterial(mat);
this->material=mat;
}
void Model::setCastShadow(bool castShadow){
for(Node *node : children)
for(Mesh *mesh : node->getMeshes())
mesh->setCastShadow(castShadow);
this->castShadow=castShadow;
}
}