From 335f596393472e3d43539d5a6a93a21f134d45a4 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Tue, 2 Mar 2021 10:39:38 -0600 Subject: [PATCH] Start working on more lights --- core/Light.cpp | 22 ++++++++++++++++++++++ core/Light.h | 23 +++++++++++++++++++++++ roadmap.md | 8 ++++++++ 3 files changed, 53 insertions(+) diff --git a/core/Light.cpp b/core/Light.cpp index 71e45a9..656af4f 100644 --- a/core/Light.cpp +++ b/core/Light.cpp @@ -1,3 +1,25 @@ +/* + Dane Johnson + + LICENSE + + Couch Copyright (C) 2021 Dane Johnson + + This program comes with ABSOLUTELY NO WARRANTY; without event the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU General Public License for details at + https://www.gnu.org/licenses/gpl-3.0.html + + This is free software, and you are welcome to redistribute it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, + or (at your option) any later version. + + DESCRIPTION + + Lights provide lighting to a scene. They can be colored and support + ambient, diffuse, and specular properties. +*/ #include "Light.h" Name Light::GetType() const {return "Light";} diff --git a/core/Light.h b/core/Light.h index d1e5c51..928e934 100644 --- a/core/Light.h +++ b/core/Light.h @@ -1,3 +1,26 @@ +/** + @file + @author Dane Johnson + + @section LICENSE + + Couch Copyright (C) 2021 Dane Johnson + + This program comes with ABSOLUTELY NO WARRANTY; without event the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU General Public License for details at + https://www.gnu.org/licenses/gpl-3.0.html + + This is free software, and you are welcome to redistribute it + under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, + or (at your option) any later version. + + @section DESCRIPTION + + Lights provide lighting to a scene. They can be colored and support + ambient, diffuse, and specular properties. +*/ #ifndef LIGHT_H #define LIGHT_H diff --git a/roadmap.md b/roadmap.md index 619d6b3..295c4fa 100644 --- a/roadmap.md +++ b/roadmap.md @@ -83,3 +83,11 @@ Things are starting to smell, here's what I need to do - [ ] Combine related files (shaders) - [ ] Create a testing suite - [x] Have exceptions thrown to Lua if generated from a user program + +## More lights +The great refactor continues, and I will incrementally make progress, +but this project is going to die on the vine if I don't get motivated, and +motivation comes from new features. +- [ ] Point Light +- [ ] Spot Light +- [ ] Shadows