The lighting is done better where I set it up once in the shader and then only change the camera spotlight when the camera moves.
This commit is contained in:
parent
748528a31f
commit
032f10ef44
5 changed files with 22 additions and 3 deletions
|
|
@ -15,6 +15,7 @@ struct Camera {
|
|||
float lastY = 300;
|
||||
float fov = 45.0f;
|
||||
bool firstMouse = true;
|
||||
bool dirty = true;
|
||||
|
||||
glm::mat4 look_at();
|
||||
void forward();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue