shadows done

This commit is contained in:
2023-02-17 14:51:27 +03:00
parent 3c9386de63
commit eb5f50fc9d
6 changed files with 124 additions and 88 deletions

View File

@@ -596,7 +596,7 @@ void AimedObject::orbitXY(const float & a) {
void AimedObject::transformChanged() {}
Light::Light(const QVector3D & p, const QColor & c, float i): AimedObject(), shadow_map(nullptr, 0, true, GL_R32F) {
Light::Light(const QVector3D & p, const QColor & c, float i): AimedObject(), shadow_map(nullptr, 0, false) {
type_ = glLight;
light_type = Omni;
intensity = i;