fede-vaccaro / TerrainEngine-OpenGL

An OpenGL 4 and C++ program which renders a procedural scene.
MIT License
634 stars 88 forks source link

Fix light and fog color not change from UI #17

Open Tanc-ANT opened 4 years ago

Tanc-ANT commented 4 years ago

Fix #10

You using default highSunPreset and presetSunset values to update these two colors each frame.

This is the issue.

I fixed it with once update in the constructor.